- java.lang.Object
-
- com.ibm.dtfj.utils.file.ManagedImageSource
-
public class ManagedImageSource extends Object
Represents a managed core file. The core can reside in a compressed archive or be extracted to the local file system.
-
-
Constructor Summary
Constructors Constructor Description ManagedImageSource(String name, ImageSourceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecRefCount()FilegetArchive()FilegetExtractedTo()ManagedImageSourcegetMetadata()StringgetName()StringgetPath()StringgetPathToExtractedFile()intgetRefCount()ImageSourceTypegetType()URIgetURIOfExtractedFile()Provides a URI for the location of the file after it has been extracted i.e. in a temporary directorybooleanhasMetaData()voidincRefCount()booleanisCompressed()voidsetArchive(File archive)voidsetExtractedTo(File extractedTo)voidsetMetadata(ManagedImageSource metadata)voidsetPath(String path)URItoURI()Provides a URI for the location of the file before it has been extracted i.e. within the archive
-
-
-
Constructor Detail
-
ManagedImageSource
public ManagedImageSource(String name, ImageSourceType type)
-
-
Method Detail
-
getType
public ImageSourceType getType()
-
hasMetaData
public boolean hasMetaData()
-
getMetadata
public ManagedImageSource getMetadata()
-
setMetadata
public void setMetadata(ManagedImageSource metadata)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
isCompressed
public boolean isCompressed()
-
getName
public String getName()
-
getArchive
public File getArchive()
-
setArchive
public void setArchive(File archive)
-
getExtractedTo
public File getExtractedTo()
-
setExtractedTo
public void setExtractedTo(File extractedTo)
-
getRefCount
public int getRefCount()
-
incRefCount
public void incRefCount()
-
decRefCount
public void decRefCount()
-
getPathToExtractedFile
public String getPathToExtractedFile()
-
getURIOfExtractedFile
public URI getURIOfExtractedFile()
Provides a URI for the location of the file after it has been extracted i.e. in a temporary directory- Returns:
-
toURI
public URI toURI()
Provides a URI for the location of the file before it has been extracted i.e. within the archive- Returns:
-
-