|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteFile
Objects of this class represent a file on the remote FTP server.
| Method Summary | |
|---|---|
java.lang.String |
getAttributes()
Returns the attributes of this file in standard unix format. |
java.lang.String |
getExtension()
Returns the extension of this file. |
java.lang.String |
getGroup()
Returns the group name to which the owner of this file belongs to. |
long |
getLastModified()
Returns the last modified date of this file in milli seconds. |
int |
getLinkCount()
Returns the number of links that point to this file. |
java.lang.String |
getName()
Returns the name of this remote file. |
java.lang.String |
getNormalizedName()
Returns the normalized name of this remote file. |
java.lang.String |
getNormalizedPath()
Returns the normalized path. |
java.util.Hashtable |
getOtherProperties()
Returns additional properties of this file if any. |
java.lang.String |
getOwner()
Returns the owner of this file. |
java.lang.String |
getPath()
Returns the full path of this remote file. |
long |
getSize()
Returns the size of this file in bytes. |
java.lang.String |
getType()
Returns the type of this file. |
boolean |
isDirectory()
Tells whether this file is a directory or not. |
boolean |
isFile()
Tells whether this file is a data file or not. |
boolean |
isLink()
Checkes to see if this file is symbolic link. |
void |
setAttributes(java.lang.String attributes)
Sets the attributes on this file to the given attributes. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getNormalizedName()
java.lang.String getPath()
java.lang.String getNormalizedPath()
java.lang.String getExtension()
java.lang.String getType()
long getSize()
long getLastModified()
boolean isDirectory()
true, if this file is a directory.
false otherwise.boolean isFile()
true, if this file is a data file.
false otherwise.boolean isLink()
true, if this file is a symbolic link.
false, otherwsie.java.lang.String getAttributes()
java.util.Hashtable getOtherProperties()
int getLinkCount()
java.lang.String getOwner()
java.lang.String getGroup()
void setAttributes(java.lang.String attributes)
attributes - new attributes to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||