|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.radinks.net.RemoteFile
Represents a file on the remote server, two subclasses provide functionality specific to files on windows and unix like operating systems. Other platforms are not supported at the moment.
The correct way to make use of this class is to create a new instance
by calling the parse() method, which is a factory.
| Constructor Summary | |
protected |
RemoteFile()
|
protected |
RemoteFile(java.lang.String s)
|
| Method Summary | |
static RemoteFile |
doubleDot()
Create an entry for the parent folder. |
FileAttrs |
getAttrs()
|
java.lang.String |
getFilename()
|
static boolean |
isRedmond()
|
static RemoteFile |
parse(java.lang.String s)
A factory method that creates a remote file instanace for the current server type. |
void |
setAttrs(FileAttrs attrs)
|
void |
setFileName(java.lang.String fileName)
|
static void |
setServerType(java.lang.String st)
Are we running on windows or linux? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected RemoteFile()
protected RemoteFile(java.lang.String s)
| Method Detail |
public static RemoteFile parse(java.lang.String s)
s - a line read in from the LIST command.
public static RemoteFile doubleDot()
public java.lang.String getFilename()
public FileAttrs getAttrs()
public static void setServerType(java.lang.String st)
st - public static boolean isRedmond()
public void setAttrs(FileAttrs attrs)
attrs - attributes for this file.public void setFileName(java.lang.String fileName)
fileName - name of this file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Rad Inks FTP library
Copyright (c) 2003,2004 Rad Inks (Pvt) Ltd.