IP*Works! V8

ipworks
Class DirEntry

java.lang.Object
  |
  +--ipworks.DirEntry

public class DirEntry
extends java.lang.Object

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.

The following is a list of all of the fields and their descriptions for this type:

Entry: The complete unparsed entry in the directory listing. This contains the raw entry as received from the server.

FileName: 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: File size in the last directory listing.

FileTime: 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: 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.

See Also:
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

DirEntry

public DirEntry()
Method Detail

getEntry

public java.lang.String getEntry()

getFileName

public java.lang.String getFileName()

getFileSize

public long getFileSize()

getFileTime

public java.lang.String getFileTime()

getIsDir

public boolean getIsDir()

IP*Works! V8

Copyright (c) 2007 /n software inc. - All rights reserved.