public class FileData extends Object
Constructor and Description |
---|
FileData()
Create a new remote file.
|
FileData(File file)
Create a new remote file.
|
FileData(String filename,
String path,
boolean directory,
boolean exists,
String displayname,
long lastmodified,
char separator,
int prefix,
long filesize)
Create a new remote file.
|
Modifier and Type | Method and Description |
---|---|
static FileData[] |
convertToRemoteFiles(File[] files)
Convert files to remote files.
|
String |
getDisplayName()
Get the displayname.
|
static String |
getDisplayName(File file)
Get the display name for a file.
|
String |
getFilename()
Get the filename.
|
long |
getFileSize()
Get the filesize.
|
long |
getLastModified()
Get the lastmodified.
|
String |
getPath()
Get the path.
|
int |
getPrefixLength()
Get the prefix.
|
static int |
getPrefixLength(File file)
Get the prefix length of a file.
|
char |
getSeparatorChar()
Get the separator char.
|
boolean |
isDirectory()
Get the directory.
|
boolean |
isExists()
Get the exists flag.
|
static void |
main(String[] args) |
void |
setDirectory(boolean directory)
Set the directory.
|
void |
setDisplayName(String displayname)
Set the displayname.
|
void |
setExists(boolean exists)
Set the exists flag.
|
void |
setFilename(String filename)
Set the filename.
|
void |
setFileSize(long filesize)
Set the filesize.
|
void |
setLastModified(long lastmodified)
Set the lastmodified.
|
void |
setPath(String path)
Set the path.
|
void |
setPrefixLength(int prefix)
Set the prefix.
|
void |
setSeparatorChar(char separator)
Set the separator char.
|
String |
toString()
Get the string representation.
|
public FileData()
public FileData(String filename, String path, boolean directory, boolean exists, String displayname, long lastmodified, char separator, int prefix, long filesize)
public FileData(File file)
public String getFilename()
public void setFilename(String filename)
filename
- The filename to set.public String getPath()
public void setPath(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 String getDisplayName()
public void setDisplayName(String displayname)
displayname
- The displayname to set.public long getLastModified()
public void setLastModified(long lastmodified)
lastmodified
- The lastmodified to set.public static FileData[] convertToRemoteFiles(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 String toString()
public static int getPrefixLength(File file)
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.