- java.lang.Object
-
- com.ibm.dtfj.image.j9.ImageFactory
-
- All Implemented Interfaces:
ImageFactory
public class ImageFactory extends Object implements ImageFactory
-
-
Field Summary
-
Fields declared in interface com.ibm.dtfj.image.ImageFactory
DTFJ_LOGGER_NAME, DTFJ_MAJOR_VERSION, DTFJ_MINOR_VERSION, SYSTEM_PROPERTY_TMPDIR
-
-
Constructor Summary
Constructors Constructor Description ImageFactory()
This public constructor is intended for use with Class.newInstance().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image
getImage(File imageFile)
Creates a new Image object based on the contents of imageFileImage
getImage(File imageFile, File metadata)
Creates a new Image object based on the contents of imageFile and metadataImage
getImage(ImageInputStream in, URI sourceID)
Creates a new Image object based on the contents of input streamImage
getImage(ImageInputStream in, ImageInputStream meta, URI sourceID)
Creates a new Image object based on the contents of input stream-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.image.ImageFactory
getDTFJMajorVersion, getDTFJMinorVersion, getDTFJModificationLevel, getImagesFromArchive
-
-
-
-
Constructor Detail
-
ImageFactory
public ImageFactory()
This public constructor is intended for use with Class.newInstance(). This class will generally be referred to by name (e.g. using Class.forName()).- See Also:
ImageFactory
-
-
Method Detail
-
getImage
public Image getImage(File imageFile) throws IOException
Creates a new Image object based on the contents of imageFile- Specified by:
getImage
in interfaceImageFactory
- Parameters:
imageFile
- a file with Image information, typically a core file but may also be a container such as a zip- Returns:
- an instance of Image (null if no image can be constructed from the given file)
- Throws:
IOException
-
getImage
public Image getImage(ImageInputStream in, URI sourceID) throws IOException
Creates a new Image object based on the contents of input stream- Specified by:
getImage
in interfaceImageFactory
- Parameters:
imageFile
- a file with Image information, typically a core file but may also be a container such as a zip- Returns:
- an instance of Image (null if no image can be constructed from the given file)
- Throws:
IOException
-
getImage
public Image getImage(ImageInputStream in, ImageInputStream meta, URI sourceID) throws IOException
Creates a new Image object based on the contents of input stream- Specified by:
getImage
in interfaceImageFactory
- Parameters:
imageFile
- a file with Image information, typically a core file but may also be a container such as a zip- Returns:
- an instance of Image (null if no image can be constructed from the given file)
- Throws:
IOException
-
getImage
public Image getImage(File imageFile, File metadata) throws IOException
Creates a new Image object based on the contents of imageFile and metadata- Specified by:
getImage
in interfaceImageFactory
- Parameters:
imageFile
- a file with Image information, typically a core filemetadata
- a file with additional Image information. This is an implementation defined file- Returns:
- an instance of Image
- Throws:
IOException
-
-