|
||||||||||
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 | |
---|---|
String |
getAttributes()
Returns the attributes of this file in standard unix format. |
String |
getExtension()
Returns the extension of this file. |
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. |
String |
getName()
Returns the name of this remote file. |
String |
getNormalizedName()
Returns the normalized name of this remote file. |
String |
getNormalizedPath()
Returns the normalized path. |
Hashtable |
getOtherProperties()
Returns additional properties of this file if any. |
String |
getOwner()
Returns the owner of this file. |
String |
getPath()
Returns the full path of this remote file. |
long |
getSize()
Returns the size of this file in bytes. |
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(String attributes)
Sets the attributes on this file to the given attributes. |
Method Detail |
---|
String getName()
String getNormalizedName()
String getPath()
String getNormalizedPath()
String getExtension()
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.String getAttributes()
Hashtable getOtherProperties()
int getLinkCount()
String getOwner()
String getGroup()
void setAttributes(String attributes)
attributes
- new attributes to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |