|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sauronsoftware.ftp4j.FTPFile
public class FTPFile
The instances of this class represents the files in a remote FTP directory.
Field Summary | |
---|---|
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 Summary | |
---|---|
FTPFile()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_FILE
public static final int TYPE_DIRECTORY
public static final int TYPE_LINK
Constructor Detail |
---|
public FTPFile()
Method Detail |
---|
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
.
TYPE_FILE
, TYPE_DIRECTORY
or
TYPE_LINK
.public void setType(int type)
TYPE_FILE
, TYPE_DIRECTORY
or
TYPE_LINK
.
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |