|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.cofax.cms.CofaxToolsNTFileListParser
CofaxToolsNTFileListParser: Replaces DefaultFileListParser for the Oroinc netComponents class - which does not seem to perform the ftp list() call correctly on NT machines. This class splits list() returns from an NT server and ports the appropriate portions into FTPFile objects.
Field Summary | |
int |
fileNameStart
Point in the string at which file name information starts. |
int |
fileNameStop
Point in the string at which file name information stops. |
int |
fileSizeStart
Point in the string at which file size information starts. |
int |
fileSizeStop
Point in the string at which file size information stops. |
int |
isDirStart
Point in the string at which dir/ folder information starts. |
int |
isDirStop
Point in the string at which dir/ folder information stops. |
int |
timeStart
Point in the string at which time information starts. |
int |
timeStop
Point in the string at which time information stops. |
Constructor Summary | |
CofaxToolsNTFileListParser()
|
Method Summary | |
com.oroinc.net.ftp.FTPFile[] |
parseFileList(java.io.InputStream in)
Parses all information returned by parseline (from a line return from an ftp list() call into a new array of Oroinc FTPFile objects. |
java.util.HashMap |
parseLine(java.lang.String line)
Splits the line returned via an ftp list() command into elements according to class parameters and returns them in a HashMap. |
java.lang.String |
preTrim(java.lang.String input)
Default trim() function does not operate on Strings returned by an NT server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int timeStart
public int timeStop
public int isDirStart
public int isDirStop
public int fileSizeStart
public int fileSizeStop
public int fileNameStart
public int fileNameStop
Constructor Detail |
public CofaxToolsNTFileListParser()
Method Detail |
public com.oroinc.net.ftp.FTPFile[] parseFileList(java.io.InputStream in) throws java.io.IOException
parseFileList
in interface com.oroinc.net.ftp.FTPFileListParser
public java.lang.String preTrim(java.lang.String input)
public java.util.HashMap parseLine(java.lang.String line)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |