|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectipworks.DirEntry
public class DirEntry
A listing in a directory returned from the server.
The DirEntry listings are filled out by the bean when a directory listing is received as a response to a ListDirectory
or ListDirectoryLong
call. The server returns a listing for each directory and file in the RemotePath
that exists. This listing is parsed into a directory entry.
If ListDirectoryLong
is called, all of the fields listed below are supplied by the server. However, when the ListDirectory
method is called, the FileSize
, FileTime
, and IsDir
fields all are left empty by the server. The only field it returns in this case is the FileName
.
The full line for the directory entry is provided by the Entry
field.
Entry: This field contains the raw entry as received from the server. The complete unparsed entry in the directory listing.
FileName:
This field shows the file name in the last directory listing. This may also be the directory name if a directory is being listed. You can tell whether it is a file or directory by the boolean IsDir
field.
FileSize: This field shows the file size in the last directory listing.
FileTime: This field shows the file time in the last directory listing. This contains the date/time stamp in which the file was created.
NOTE: In Unix systems the date is given in two types of formats: If the date is in the last 12 months the exact time is specified and the year is omitted. Otherwise only the date and the year but not hours or minutes are given.
IsDir:
This field specifies whether entries in the last directory listing are directories.
This boolean value denotes whether or not the directory entry listed in FileName
is a file or a directory.
Atom
,
Atom.DirEntry
Constructor Summary | |
---|---|
DirEntry()
|
Method Summary | |
---|---|
java.lang.String |
getEntry()
|
java.lang.String |
getFileName()
|
long |
getFileSize()
|
java.lang.String |
getFileTime()
|
boolean |
getIsDir()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirEntry()
Method Detail |
---|
public java.lang.String getEntry()
public java.lang.String getFileName()
public long getFileSize()
public java.lang.String getFileTime()
public boolean getIsDir()
|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |