public class LegacyQTTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPIRED_QT_MSG |
protected boolean |
expiredQT
Flag indicating QuickTime for Java has expired.
|
protected boolean |
initialized
Flag indicating this class has been initialized.
|
static java.lang.String |
JVM_64BIT_MSG |
protected boolean |
jvm64Bit
Flag indicating 64-bit JVM (does not support QTJava).
|
protected static java.lang.ClassLoader |
LOADER
This custom class loader searches additional paths for the QTJava.zip
library.
|
private static org.slf4j.Logger |
LOGGER |
protected static boolean |
MAC_OS_X |
static java.lang.String |
NO_QT_MSG |
protected boolean |
noQT
Flag indicating QuickTime for Java is not installed.
|
protected loci.common.ReflectedUniverse |
r
Reflection tool for QuickTime for Java calls.
|
protected static java.lang.String[] |
SUFFIXES |
Constructor and Description |
---|
LegacyQTTools() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDoQT()
Whether QuickTime is available to this JVM.
|
void |
checkQTLibrary()
Checks whether QTJava is available, throwing an exception if not.
|
protected static java.lang.ClassLoader |
constructLoader() |
java.awt.Dimension |
getPictDimensions(byte[] bytes)
Gets width and height for the given PICT bytes.
|
java.lang.String |
getQTVersion()
Gets the QuickTime for Java version number.
|
loci.common.ReflectedUniverse |
getUniverse()
Gets QuickTime for Java reflected universe.
|
protected void |
initClass()
Initializes the class.
|
boolean |
isJVM64Bit()
Whether this JVM is 64-bit.
|
boolean |
isQTExpired()
Whether QuickTime for Java has expired.
|
java.awt.Image |
pictToImage(byte[] bytes)
Converts the given byte array in PICT format to a Java image.
|
private static final org.slf4j.Logger LOGGER
public static final java.lang.String NO_QT_MSG
public static final java.lang.String JVM_64BIT_MSG
public static final java.lang.String EXPIRED_QT_MSG
protected static final java.lang.String[] SUFFIXES
protected static final boolean MAC_OS_X
protected static final java.lang.ClassLoader LOADER
protected boolean initialized
protected boolean noQT
protected boolean jvm64Bit
protected boolean expiredQT
protected loci.common.ReflectedUniverse r
protected static java.lang.ClassLoader constructLoader()
protected void initClass()
public boolean canDoQT()
public boolean isJVM64Bit()
public boolean isQTExpired()
public java.lang.String getQTVersion()
public loci.common.ReflectedUniverse getUniverse()
public java.awt.Dimension getPictDimensions(byte[] bytes) throws FormatException, loci.common.ReflectException
FormatException
loci.common.ReflectException
public java.awt.Image pictToImage(byte[] bytes) throws FormatException
FormatException
public void checkQTLibrary() throws MissingLibraryException
MissingLibraryException
Copyright © 2019 Open Microscopy Environment