|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A descriptor for a data resource represented as a file on disk. This descriptor holds all information necessary to persist to and restore from a file on disk. Implementations must make sure that all information necessary for persistence using files is contained in this descriptor.
| Method Summary | |
java.io.File |
getFile()
Gets the file represented by this resource descriptor. |
java.lang.String |
getFileExtension()
Gets the extension of the file represented by this resource descriptor. |
java.lang.String |
getFileName()
Gets the name of the file. |
java.lang.String |
getFilePath()
Returns the path to the file. |
boolean |
isCompressionEnabled()
Checks to see if the file represented by this resource descriptor is to be compressed or not. |
void |
setCompression(boolean compress)
Sets the compression to be enabled or disabled. |
void |
setFile(java.io.File file)
Sets the properties of this file based on the File object passed in. |
| Method Detail |
public java.lang.String getFileName()
File.getName()public java.lang.String getFilePath()
File.separator,
File.getPath()public void setFile(java.io.File file)
file - The file whose properties this resource descriptor should imbibe.public java.io.File getFile()
public java.lang.String getFileExtension()
public boolean isCompressionEnabled()
public void setCompression(boolean compress)
compress - true if the file should be compressed
or decompressed. false if the file shouldn't be compressed.edu.iu.iv.core.persistence.FileResourceDescriptor#compressionEnabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||