|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.myjavaworld.ftp.DosListParser
public class DosListParser
An implementation of ListParser interface used to parse the
directory listing of FTP servers, which produce the output in MS-DOS format.
| Constructor Summary | |
|---|---|
DosListParser()
|
|
| Method Summary | |
|---|---|
RemoteFile |
createRemoteFile(RemoteFile parent,
java.lang.String name)
Creates a RemoteFile object |
RemoteFile |
createRemoteFile(RemoteFile parent,
java.lang.String name,
boolean dir)
Creates a RemoteFile object. |
RemoteFile |
createRemoteFile(java.lang.String path)
Creates a RemoteFile object. |
RemoteFile |
createRemoteFile(java.lang.String path,
boolean dir)
Creates a RemoteFile object. |
RemoteFile |
createRemoteFile(java.lang.String parent,
java.lang.String name)
Creates a RemoteFile object. |
RemoteFile |
createRemoteFile(java.lang.String parent,
java.lang.String name,
boolean dir)
Creates a RemoteFile object. |
java.lang.String |
getDescription()
Returns the description of this parser. |
java.lang.String |
getName()
Gets the name of this ListParser |
java.lang.String |
getVendor()
Gets the vendor name of this parser. |
java.lang.String |
getVersion()
Gets the version of this parser. |
RemoteFile |
parse(RemoteFile parent,
java.lang.String rawData)
Parses a line of output in to a RemoteFile object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DosListParser()
| Method Detail |
|---|
public RemoteFile parse(RemoteFile parent,
java.lang.String rawData)
throws java.text.ParseException
ListParserRemoteFile object.
parse in interface ListParserparent - Parent directory.rawData - a line of output from the LIST command.
java.text.ParseException - if the rawData can not be parsed by this ListParser.public RemoteFile createRemoteFile(java.lang.String path)
ListParserRemoteFile object. The created object will be
marked as a directory.
createRemoteFile in interface ListParserpath - Absolute path name
public RemoteFile createRemoteFile(java.lang.String path,
boolean dir)
ListParserRemoteFile object.
createRemoteFile in interface ListParserpath - Absolute path namedir - If this is true, the created object will be
marked as a directory. Otherwise, a file.
public RemoteFile createRemoteFile(java.lang.String parent,
java.lang.String name)
ListParserRemoteFile object.
createRemoteFile in interface ListParserparent - Parent filename - Name of the file The created object will be marked as a
directory.
public RemoteFile createRemoteFile(java.lang.String parent,
java.lang.String name,
boolean dir)
ListParserRemoteFile object.
createRemoteFile in interface ListParserparent - Parent filename - Name of the filedir - If this is true, the created object will be
marked as a directory. Otherwise, a file.
public RemoteFile createRemoteFile(RemoteFile parent,
java.lang.String name)
ListParserRemoteFile object
createRemoteFile in interface ListParserparent - Parent filename - Name of the file
public RemoteFile createRemoteFile(RemoteFile parent,
java.lang.String name,
boolean dir)
ListParserRemoteFile object.
createRemoteFile in interface ListParserparent - Parent filename - Name of the file
public java.lang.String getName()
ListParserListParser
getName in interface ListParserpublic java.lang.String getDescription()
ListParser
getDescription in interface ListParserpublic java.lang.String getVendor()
ListParser
getVendor in interface ListParserpublic java.lang.String getVersion()
ListParser
getVersion in interface ListParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||