|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.network.ftp.FileInfo
This class stores File information. For each of the file, FTPProtocol class needs to store additional information like size, date and time. This information has to be sent to any User Interface components registered with the FTPProtocol class. This class has getter and setter methods for time, date,size,name and file type. Modified 11/30/99 Andrey Rusak to correctly calculating date and time Servers
FTPProtocol
,
com.ibm.network.ftp.ui.FTPUI
, Serialized FormConstructor Summary | |
FileInfo()
Creates an object of FileInfo class. |
Method Summary | |
java.lang.String |
getDate()
Returns the last file modification date. |
java.lang.String |
getName()
Returns the name of the file. |
java.lang.String |
getSize()
Returns the size of the file represented by this FileInfo object. |
java.lang.String |
getTime()
Returns the time the file was last modified. |
boolean |
isFile()
Returns whether a regular file or directory. |
void |
setDate(java.lang.String date)
Set the last modification date of the file. |
void |
setFile(boolean file)
Sets the file type (regular file or directory). |
void |
setLocalDescription(java.lang.String fileName,
java.lang.String pathName)
This method will set the attributes for a local file. |
void |
setName(java.lang.String fileName)
Sets the name of the file represented by this FileInfo object. |
void |
setRemoteDescriptionMVS(java.lang.String reply)
This method will set attributes for a remote file. |
void |
setRemoteDescriptionOS400(java.lang.String reply)
|
void |
setRemoteDescriptionUNIX(java.lang.String reply)
This method will set attributes for a remote file. |
void |
setRemoteDescriptionVM(java.lang.String reply)
This method will set attributes for a remote file. |
void |
setSize(java.lang.String size)
Sets the size of the file represented by this FileInfo object. |
void |
setTime(java.lang.String time)
Sets the time of the file represented by this FileInfo object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileInfo()
Method Detail |
public java.lang.String getDate()
public java.lang.String getName()
public java.lang.String getSize()
public java.lang.String getTime()
public boolean isFile()
public void setDate(java.lang.String date)
date
- The last modified date of the file represented by this FileInfo object.public void setFile(boolean file)
file
- whether the file represented by this FileInfo object is a simple file or directory.
true: if it is regular file.
false: if it is a directory.public void setLocalDescription(java.lang.String fileName, java.lang.String pathName)
fileName
- name of the file whose description has to be set.pathName
- path of the file whose description has to be set.public void setName(java.lang.String fileName)
fileName
- name of the file represented by this FileInfo object.public void setRemoteDescriptionMVS(java.lang.String reply)
reply
- reply of FTP server for "dir" command.public void setRemoteDescriptionUNIX(java.lang.String reply)
reply
- reply of FTP server for "dir" command.public void setRemoteDescriptionVM(java.lang.String reply)
reply
- reply of FTP server for "dir" command.public void setRemoteDescriptionOS400(java.lang.String reply)
public void setSize(java.lang.String size)
size
- size of the file represented by this FileInfo object.public void setTime(java.lang.String time)
time
- time at which the file represented by this FileInfo object was last modified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |