public class FTPFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DIRECTORY
The value for the type "directory".
|
static int |
TYPE_FILE
The value for the type "file".
|
static int |
TYPE_LINK
The value for the type "link".
|
Constructor and Description |
---|
FTPFile() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLink()
This method returns the path of the linked file, if this one is a link.
|
java.util.Date |
getModifiedDate()
Returns the last modified date of the file.
|
java.lang.String |
getName()
Returns the name of the file.
|
long |
getSize()
Returns the size of the file (bytes).
|
int |
getType()
Returns the type of the entry represented.
|
void |
setLink(java.lang.String link)
This method sets the path of the linked file, if this one is a link.
|
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the last modified date of the file.
|
void |
setName(java.lang.String name)
Sets the name of the file.
|
void |
setSize(long size)
Sets the size of the file (bytes).
|
void |
setType(int type)
Sets the type of the entry represented.
|
java.lang.String |
toString() |
public static final int TYPE_FILE
public static final int TYPE_DIRECTORY
public static final int TYPE_LINK
public java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date modifiedDate)
modifiedDate
- The last modified date of the file.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the file.public int getType()
TYPE_FILE
, TYPE_DIRECTORY
or
TYPE_LINK
.public void setType(int type)
type
- The type of the entry represented. It can be
TYPE_FILE
, TYPE_DIRECTORY
or
TYPE_LINK
.public long getSize()
public void setSize(long size)
size
- The size of the file (bytes).public java.lang.String getLink()
public void setLink(java.lang.String link)
link
- The path of the linked file, if this one is a link.public java.lang.String toString()
toString
in class java.lang.Object