|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcynosurex.io.TemporaryStorage
public class TemporaryStorage
This class provides tools to deal with temporary files and directories. If you create temporary files and directory by instantiating this class, it will also manage the temporary file/directory for you. It will delete all temporary file when it goes out of scope.
Field Summary | |
---|---|
static boolean |
DIRECTORY
|
static boolean |
FILE
|
Fields inherited from interface cynosurex.internal.CommonInterface |
---|
copyright, copyrightYears, notice, program, version |
Fields inherited from interface cynosurex.internal.AuthorCommon |
---|
author, copyrightSymbol, noticeMsg, rights |
Fields inherited from interface cynosurex.internal.CompanyCommon |
---|
company, email, website |
Constructor Summary | |
---|---|
TemporaryStorage(boolean type)
Constructor |
|
TemporaryStorage(java.lang.String prefix,
boolean type)
Constructor |
Method Summary | |
---|---|
void |
cleanUp()
Cleans up the temporary file or directory. |
protected void |
finalize()
|
java.io.File |
getPath()
This method returns the File entity to the temporary path. |
java.lang.String |
getPrefix()
This method returns the prefix for the temporary file or directory. |
static java.lang.String |
getSystemTempDir()
Gets the operating system temporary directory. |
boolean |
getType()
This method provides whether this is a temporary file or a temporary directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean FILE
public static final boolean DIRECTORY
Constructor Detail |
---|
public TemporaryStorage(boolean type) throws java.io.IOException
java.io.IOException
public TemporaryStorage(java.lang.String prefix, boolean type) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void cleanUp()
protected void finalize()
finalize
in class java.lang.Object
public java.io.File getPath()
public java.lang.String getPrefix()
public static java.lang.String getSystemTempDir()
public boolean getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |