|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileAttr
This object is returned when a directory list is requested. It can be used to individually examine the entries of the directory. Note that the returned values reflect what the peer ssh server (and the sftp subsystem) returns. The implemented methods on this interface give control over examining the name, size, last access/modification, file status properties of the entries.
Method Summary | |
---|---|
java.util.Date |
getLastAccess()
Retrieve the time and date of the last access to this file. |
java.util.Date |
getLastMod()
Retrieve the time and date of the last modification to this file. |
java.lang.String |
getName()
Obtain the name of the file. |
long |
getSize()
Obtain the size of the file in bytes. |
boolean |
isDir()
Check if the object defined by this attribute is a directory. |
boolean |
isFile()
Check if the object defined by this attribute is a file. |
Method Detail |
---|
java.lang.String getName()
boolean isDir()
boolean isFile()
long getSize()
java.util.Date getLastAccess()
java.util.Date getLastMod()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |