org.glassfish.admin.payload
Class PayloadFilesManager.Temp
java.lang.Object
org.glassfish.admin.payload.PayloadFilesManager
org.glassfish.admin.payload.PayloadFilesManager.Temp
- Enclosing class:
- PayloadFilesManager
public static class PayloadFilesManager.Temp
- extends PayloadFilesManager
Extracts files from a payload, treating them as temporary files.
The caller should invoke cleanup() once it is finished with the
extracted files, although the finalizer will invoke cleanup if the
caller has not.
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(File parentDir,
ActionReport report,
Logger logger)
throws IOException
- Throws:
IOException
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(ActionReport report,
Logger logger)
throws IOException
- Creates a new PayloadFilesManager for temporary files.
- Parameters:
report - results report to which extraction results will be appendedlogger - logger to receive messages
- Throws:
IOException
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(Logger logger)
throws IOException
- Creates a new PayloadFilesManager for temporary files.
- Parameters:
logger - logger to receive messages
- Throws:
IOException
cleanup
public void cleanup()
- Deletes the temporary files created by this temp PayloadFilesManager.
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
postExtract
protected void postExtract(File extractedFile)
- Specified by:
postExtract in class PayloadFilesManager
postProcessParts
protected void postProcessParts()
- Specified by:
postProcessParts in class PayloadFilesManager
Copyright © 2012 GlassFish Community. All Rights Reserved.