Class J9DDRImageFactory
java.lang.Object
com.ibm.j9ddr.view.dtfj.image.J9DDRImageFactory
- All Implemented Interfaces:
 ImageFactory
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields declared in interface ImageFactory
DTFJ_LOGGER_NAME, SYSTEM_PROPERTY_TMPDIR - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintFetch the DTFJ major version number.intFetch the DTFJ minor version number.intFetch the DTFJ modification level.Creates a newImageobject based on the contents ofimageFile.Creates a newImageobject based on the contents ofimageFileandmetadata.getImage(ImageInputStream in, URI sourceID) Creates a newImageobject based on the contents of the given input stream.getImage(ImageInputStream in, ImageInputStream meta, URI sourceID) Creates a newImageobject based on the contents of the given input stream.Image[]getImagesFromArchive(File archive, boolean extract) Creates an array ofImageobjects from an archive such as a zip or jar file. 
- 
Field Details
- 
DTFJ_MAJOR_VERSION
public static final int DTFJ_MAJOR_VERSION- See Also:
 
 - 
DTFJ_MINOR_VERSION
public static final int DTFJ_MINOR_VERSION- See Also:
 
 - 
DTFJ_MODIFICATION_LEVEL
public static final int DTFJ_MODIFICATION_LEVEL- See Also:
 
 
 - 
 - 
Constructor Details
- 
J9DDRImageFactory
public J9DDRImageFactory() 
 - 
 - 
Method Details
- 
getDTFJMajorVersion
public int getDTFJMajorVersion()Description copied from interface:ImageFactoryFetch the DTFJ major version number.- Specified by:
 getDTFJMajorVersionin interfaceImageFactory- Returns:
 - an integer corresponding to the DTFJ API major version number
 
 - 
getDTFJMinorVersion
public int getDTFJMinorVersion()Description copied from interface:ImageFactoryFetch the DTFJ minor version number.- Specified by:
 getDTFJMinorVersionin interfaceImageFactory- Returns:
 - an integer corresponding to the DTFJ API minor version number
 
 - 
getDTFJModificationLevel
public int getDTFJModificationLevel()Description copied from interface:ImageFactoryFetch the DTFJ modification level.- Specified by:
 getDTFJModificationLevelin interfaceImageFactory- Returns:
 - an integer corresponding to the DTFJ API modification level
 
 - 
getImagesFromArchive
Description copied from interface:ImageFactoryCreates an array ofImageobjects from an archive such as a zip or jar file.- Specified by:
 getImagesFromArchivein interfaceImageFactory- Parameters:
 archive- which typically contains one or more diagnostic artifactsextract- true if the files in the archive should be extracted to a temporary directory- Returns:
 - an array of 
Images - Throws:
 IOException- if there's a problem reading the specified archive
 - 
getImage
Description copied from interface:ImageFactoryCreates a newImageobject based on the contents of the given input stream.- Specified by:
 getImagein interfaceImageFactory- Parameters:
 in- a stream with image information, typically a core filemeta- a stream with metadata associated with the image streamsourceID-URIidentifying the source of the image stream- Returns:
 - an instance of 
Image - Throws:
 IOException- if there's a problem reading the given streams
 - 
getImage
Description copied from interface:ImageFactoryCreates a newImageobject based on the contents ofimageFile.- Specified by:
 getImagein interfaceImageFactory- Parameters:
 core- a file with Image information, typically a core file- Returns:
 - an instance of Image
 - Throws:
 IOException- if there's a problem reading the specified file
 - 
getImage
Description copied from interface:ImageFactoryCreates a newImageobject based on the contents of the given input stream.- Specified by:
 getImagein interfaceImageFactory- Parameters:
 in- a stream with image information, typically a core filesourceID-URIidentifying the source of the image stream- Returns:
 - an instance of 
Image - Throws:
 IOException- if there's a problem reading the given stream
 - 
getImage
Description copied from interface:ImageFactoryCreates a newImageobject based on the contents ofimageFileandmetadata.- Specified by:
 getImagein interfaceImageFactory- Parameters:
 core- a file with image information, typically a core filemetadata- an (implementation-defined) file with additional image information (or null if not required)- Returns:
 - an instance of 
Image - Throws:
 IOException- if there's a problem reading either of the specified files
 
 -