Class FileManager
java.lang.Object
com.ibm.dtfj.utils.file.FileManager
- Direct Known Subclasses:
 SimpleFileManager
Class which manages the files on the local system.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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) abstract List<ManagedImageSource> 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 fileabstract ImageInputStreamGets a stream for the file which is being managed, this could be an archive file or a normal file.static boolean 
- 
Field Details
- 
MIN_CORE_SIZE
public static final long MIN_CORE_SIZE- See Also:
 
 - 
logger
 
 - 
 - 
Constructor Details
- 
FileManager
public FileManager() 
 - 
 - 
Method Details
- 
getImageSources
- Throws:
 IOException
 - 
getStream
Gets a stream for the file which is being managed, this could be an archive file or a normal file. If this is a compressed file then the stream returned will be a 'raw' stream onto file itself.- Returns:
 - Throws:
 IOException
 - 
createTempDir
Creates a unique temporary directory under the specified parent- Parameters:
 parent-- Returns:
 - Throws:
 IOException
 - 
fileExists
A platform aware file existence checker that allows for MVS datasets on z/OS- Parameters:
 file- the file to check- Returns:
 - true if the file exists, or the check cannot be performed in which case the default response of true is returned
 
 - 
getManager
Factory method for getting the correct manager to deal with the supplied file- Parameters:
 file-- Returns:
 
 - 
isArchive
 - 
getJavaCoreNameFromPHD
 - 
genJavacoreName
 
 -