public class FileDescriptor extends APIBean
| Constructor and Description |
|---|
FileDescriptor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDateCreated()
Returns the milliseconds passed since 1/1/1970 since the file was created.
|
long |
getDateModified()
Returns the milliseconds passed since 1/1/1970 since the file was modified.
|
java.lang.String |
getName()
Returns the name of the file if the reference is a file or the last path element of the folder.
|
java.lang.String |
getPath()
Returns the path element of the file or folder (excluding the last path element if it's a directory).
|
java.lang.String |
getPathAbsolute()
Returns the resolved absolute path elements of the file and/or folders (including the last path element).
|
long |
getSize()
Returns the size in bytes of the file or -1 if the reference is a folder.
|
void |
setDateCreated(long dateCreated)
Sets the creation timestamp in milliseconds.
|
void |
setDateModified(long dateModified)
Sets the file or folder modification timestamp in milliseconds.
|
void |
setName(java.lang.String name)
Sets the name of the file.
|
void |
setPath(java.lang.String path)
Sets the path of the file or folder.
|
void |
setPathAbsolute(java.lang.String pathAbsolute)
Sets the absolute path of the file or folder.
|
void |
setSize(long size)
Sets the file size in bytes of the file.
|
public long getDateCreated()
public void setDateCreated(long dateCreated)
dateCreated - Timestamp of file creation or -1 if the file or folder doesn't exist.public long getDateModified()
public void setDateModified(long dateModified)
dateModified - Timestamp of file modification or -1 if the file or folder doesn't exist.public java.lang.String getName()
public void setName(java.lang.String name)
name - Name of the file or last folder path element.public java.lang.String getPath()
public void setPath(java.lang.String path)
path - The path element of the file or folder.public java.lang.String getPathAbsolute()
public void setPathAbsolute(java.lang.String pathAbsolute)
pathAbsolute - String with the absolute path of file or folder.public long getSize()
public void setSize(long size)
size - The size in bytes of the file.