|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.common.persistence.BasicFileResourceDescriptor
| Constructor Summary | |
BasicFileResourceDescriptor()
Creates a file resource descriptor with no compression and file set to null. |
|
BasicFileResourceDescriptor(java.io.File file)
Creates a file resource descriptor with the specified file and no compression. |
|
BasicFileResourceDescriptor(java.io.File file,
boolean fileCompression)
Creates a file resource descriptor with the specified file and compression. |
|
| 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 fileCompression)
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicFileResourceDescriptor()
public BasicFileResourceDescriptor(java.io.File file,
boolean fileCompression)
file - The file to be represented by this descriptor.fileCompression - true if compression is to be enabled, false otherwise.public BasicFileResourceDescriptor(java.io.File file)
file - The file to be represented by this descriptor.| Method Detail |
public void setFile(java.io.File file)
FileResourceDescriptor
setFile in interface FileResourceDescriptorfile - The file whose properties this resource descriptor should imbibe.FileResourceDescriptor.setFile(java.io.File)public java.io.File getFile()
FileResourceDescriptor
getFile in interface FileResourceDescriptorFileResourceDescriptor.getFile()public java.lang.String getFileName()
FileResourceDescriptor
getFileName in interface FileResourceDescriptorFileResourceDescriptor.getFileName()public java.lang.String getFileExtension()
FileResourceDescriptor
getFileExtension in interface FileResourceDescriptorFileResourceDescriptor.getFileExtension()public boolean isCompressionEnabled()
FileResourceDescriptor
isCompressionEnabled in interface FileResourceDescriptorFileResourceDescriptor.isCompressionEnabled()public void setCompression(boolean fileCompression)
FileResourceDescriptor
setCompression in interface FileResourceDescriptorfileCompression - true if the file should be compressed
or decompressed. false if the file shouldn't be compressed.FileResourceDescriptor.setCompression(boolean)public java.lang.String getFilePath()
FileResourceDescriptor
getFilePath in interface FileResourceDescriptorFileResourceDescriptor.getFilePath()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||