Class GZipFileManager
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.GZipFileManager
File manger for gzip'd files. The gzip algorithm does not support a hierarchical archive
and only works on a single file.
-
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) voidgetStream(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
getImageSources, 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
-
GZipFileManager
-
-
Method Details
-
extract
- Throws:
IOException
-
getStream
- Throws:
IOException
-
extract
- Throws:
IOException
-