Class ZipFileManager
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
-
Field Summary
Fields declared in class CompressedFileManager
bufferFields declared in class SimpleFileManager
managedFileFields declared in class FileManager
logger, MIN_CORE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextract(ManagedImageSource file, File todir) Extracts the specified core file to the specified directoryvoidReturns all image sources found in this zip filegetStream(ManagedImageSource source) Methods declared in class CompressedFileManager
checkDirectoryToExtractTo, extractEntry, getImageSourceModifier and TypeMethodDescriptionprotected voidcheckDirectoryToExtractTo(File todir) Will check that the directory to extract to is a directory if it exists or create it otherwise.protected voidextractEntry(InputStream in, File path) getImageSource(String path) Returns a specified image source specified by the path in the zip fileMethods declared in class SimpleFileManager
getStreamModifier and TypeMethodDescriptionGets a stream for the file which is being managed, this could be an archive file or a normal file.Methods declared in class FileManager
createTempDir, fileExists, genJavacoreName, getJavaCoreNameFromPHD, getManager, isArchiveModifier and TypeMethodDescriptionstatic FilecreateTempDir(File parent) Creates a unique temporary directory under the specified parentstatic booleanfileExists(File file) A platform aware file existence checker that allows for MVS datasets on z/OSprotected StringgenJavacoreName(String[] s, int inc, int componentToInc) protected String[]getJavaCoreNameFromPHD(String name) Generate a list of possible javacore names from a given phd name.static FileManagergetManager(File file) Factory method for getting the correct manager to deal with the supplied filestatic boolean
-
Constructor Details
-
ZipFileManager
-
-
Method Details
-
getImageSources
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
Extracts the specified core file to the specified directory- Parameters:
file-- Throws:
IOExceptionZipException
-
getStream
- Throws:
IOException
-
extract
- Throws:
IOException
-