public class FileData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
directory
The boolean for directory.
|
protected java.lang.String |
displayname
The display name.
|
protected boolean |
exists
The boolean for existance.
|
protected java.lang.String |
filename
The file name.
|
protected long |
filesize
The file size.
|
protected long |
lastmodified
The last modified date.
|
protected java.lang.String |
path
The path.
|
protected int |
prefix
The prefix length.
|
protected char |
separator
The separator char.
|
Constructor and Description |
---|
FileData()
Create a new remote file.
|
FileData(java.io.File file)
Create a new remote file.
|
FileData(java.lang.String filename,
java.lang.String path,
boolean directory,
boolean exists,
java.lang.String displayname,
long lastmodified,
char separator,
int prefix,
long filesize)
Create a new remote file.
|
Modifier and Type | Method and Description |
---|---|
static FileData[] |
convertToRemoteFiles(java.io.File[] files)
Convert files to remote files.
|
java.lang.String |
getDisplayName()
Get the displayname.
|
static java.lang.String |
getDisplayName(java.io.File file)
Get the display name for a file.
|
java.lang.String |
getFilename()
Get the filename.
|
long |
getFileSize()
Get the filesize.
|
long |
getLastModified()
Get the lastmodified.
|
java.lang.String |
getPath()
Get the path.
|
int |
getPrefixLength()
Get the prefix.
|
char |
getSeparatorChar()
Get the separator char.
|
boolean |
isDirectory()
Get the directory.
|
boolean |
isExists()
Get the exists flag.
|
void |
setDirectory(boolean directory)
Set the directory.
|
void |
setDisplayName(java.lang.String displayname)
Set the displayname.
|
void |
setExists(boolean exists)
Set the exists flag.
|
void |
setFilename(java.lang.String filename)
Set the filename.
|
void |
setFileSize(long filesize)
Set the filesize.
|
void |
setLastModified(long lastmodified)
Set the lastmodified.
|
void |
setPath(java.lang.String path)
Set the path.
|
void |
setPrefixLength(int prefix)
Set the prefix.
|
void |
setSeparatorChar(char separator)
Set the separator char.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String filename
protected java.lang.String path
protected boolean directory
protected boolean exists
protected java.lang.String displayname
protected long lastmodified
protected char separator
protected int prefix
protected long filesize
public FileData()
public FileData(java.lang.String filename, java.lang.String path, boolean directory, boolean exists, java.lang.String displayname, long lastmodified, char separator, int prefix, long filesize)
public FileData(java.io.File file)
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- The filename to set.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path to set.public boolean isDirectory()
public void setDirectory(boolean directory)
directory
- The directory to set.public boolean isExists()
public void setExists(boolean exists)
exists
- The exists flag to set.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayname)
displayname
- The displayname to set.public static java.lang.String getDisplayName(java.io.File file)
public long getLastModified()
public void setLastModified(long lastmodified)
lastmodified
- The lastmodified to set.public static FileData[] convertToRemoteFiles(java.io.File[] files)
public char getSeparatorChar()
public void setSeparatorChar(char separator)
separator
- The separator char to set.public int getPrefixLength()
public void setPrefixLength(int prefix)
prefix
- The prefix to set.public long getFileSize()
public void setFileSize(long filesize)
filesize
- The filesize to set.public java.lang.String toString()
toString
in class java.lang.Object