- 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 void
decRefCount()
File
getArchive()
File
getExtractedTo()
ManagedImageSource
getMetadata()
String
getName()
String
getPath()
String
getPathToExtractedFile()
int
getRefCount()
ImageSourceType
getType()
URI
getURIOfExtractedFile()
Provides a URI for the location of the file after it has been extracted i.e. in a temporary directoryboolean
hasMetaData()
void
incRefCount()
boolean
isCompressed()
void
setArchive(File archive)
void
setExtractedTo(File extractedTo)
void
setMetadata(ManagedImageSource metadata)
void
setPath(String path)
URI
toURI()
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:
-
-