- java.lang.Object
-
- com.ibm.dtfj.utils.file.FileManager
-
- com.ibm.dtfj.utils.file.SimpleFileManager
-
- com.ibm.dtfj.utils.file.CompressedFileManager
-
- com.ibm.dtfj.utils.file.ZipFileManager
-
public class ZipFileManager extends CompressedFileManager
-
-
Field Summary
-
Fields declared in class com.ibm.dtfj.utils.file.CompressedFileManager
buffer
-
Fields declared in class com.ibm.dtfj.utils.file.SimpleFileManager
managedFile
-
Fields declared in class com.ibm.dtfj.utils.file.FileManager
logger, MIN_CORE_SIZE
-
-
Constructor Summary
Constructors Constructor Description ZipFileManager(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extract(ManagedImageSource file, File todir)
Extracts the specified core file to the specified directoryList<ManagedImageSource>
getImageSources()
Returns all image sources found in this zip file-
Methods declared in class com.ibm.dtfj.utils.file.CompressedFileManager
checkDirectoryToExtractTo, extract, extractEntry, getImageSource, getStream
-
Methods declared in class com.ibm.dtfj.utils.file.FileManager
createTempDir, fileExists, genJavacoreName, getJavaCoreNameFromPHD, getManager, getStream, isArchive
-
-
-
-
Constructor Detail
-
ZipFileManager
public ZipFileManager(File file)
-
-
Method Detail
-
getImageSources
public List<ManagedImageSource> getImageSources() throws IOException
Returns all image sources found in this zip file- Returns:
- all the recognised images
- Throws:
IOException
- thrown for problems reading the zip, or by individual image factories
-
extract
public void extract(ManagedImageSource file, File todir) throws IOException
Extracts the specified core file to the specified directory- Parameters:
file
-- Throws:
IOException
ZipException
-
-