|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFileInfo
Defines an object that can provide additional information about a java.io.File other than what is available by default.
| Method Summary | |
|---|---|
String |
getBasename()
Answers the base name of the file (i.e. |
String |
getElementName()
The element name based on whether the file is a file, directory, or unknown. |
String |
getExtension()
Answers the file extension.Example: "example.txt" yields "txt". |
File |
getFile()
Answers the associated file. |
String |
getLabel()
The file label which is computed by capitalizing the first letter of the file base name. |
String |
getLastModifiedDate()
Answers the last modified file date using the user defined or default format. |
String |
getLastModifiedTime()
Answers the last modified file time using the user defined or default format. |
String |
getMD5Sum()
Answers the MD5, 32-character hex checksum of a file only as calculation on a directory is excluded. |
String |
getName()
Answers the name of the file. |
String |
getParent()
Answers the parent path of the file.Example: "/path/to/file/example.txt" yields "/path/to/file". |
String |
getPath()
Answers the path to the file.Example: "/file/path/example.txt" yields "/file/path/example.txt". |
String |
getSize()
Answer the size of the file in human readable format or, in the case of directory, the size is a summation of all files and sub-directories.Examples: 3 bytes, 12 KB, 10 MB, etc. |
String |
getType()
The type of file. |
void |
setDateFormat(String format)
Sets the format to use for displaying the date.Example: yyyy-MM-dd |
void |
setFile(File file)
Sets the file based upon the given file. |
void |
setFile(String path)
Sets the file based on the given file path. |
void |
setTimeFormat(String format)
Sets the format to use for displaying the time.Example: HH:mm:ss |
| Methods inherited from interface org.aeonscope.xml.IJDOMProducer |
|---|
asElement |
| Method Detail |
|---|
File getFile()
String getName()
String getElementName()
String getLabel()
String getType()
String getBasename()
String getExtension()
String getParent()
String getPath()
String getSize()
String getMD5Sum()
String getLastModifiedDate()
String getLastModifiedTime()
void setFile(String path)
path - The file path to set.void setFile(File file)
file - The file.void setDateFormat(String format)
format - The date format.java.text#SimpleDateFormatvoid setTimeFormat(String format)
format - The time format.java.text#SimpleDateFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||