org.cofax.cms
Class CofaxToolsNTFileListParser


java.lang.Object

  |

  +--org.cofax.cms.CofaxToolsNTFileListParser

All Implemented Interfaces:
com.oroinc.net.ftp.FTPFileListParser

public class CofaxToolsNTFileListParser
extends java.lang.Object
implements com.oroinc.net.ftp.FTPFileListParser

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.

Author:
Charles Harvey

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

timeStart


public int timeStart
Point in the string at which time information starts.

timeStop


public int timeStop
Point in the string at which time information stops.

isDirStart


public int isDirStart
Point in the string at which dir/ folder information starts.

isDirStop


public int isDirStop
Point in the string at which dir/ folder information stops.

fileSizeStart


public int fileSizeStart
Point in the string at which file size information starts.

fileSizeStop


public int fileSizeStop
Point in the string at which file size information stops.

fileNameStart


public int fileNameStart
Point in the string at which file name information starts.

fileNameStop


public int fileNameStop
Point in the string at which file name information stops.
Constructor Detail

CofaxToolsNTFileListParser


public CofaxToolsNTFileListParser()
Method Detail

parseFileList


public com.oroinc.net.ftp.FTPFile[] parseFileList(java.io.InputStream in)

                                           throws java.io.IOException
Parses all information returned by parseline (from a line return from an ftp list() call into a new array of Oroinc FTPFile objects.
Specified by:
parseFileList in interface com.oroinc.net.ftp.FTPFileListParser

preTrim


public java.lang.String preTrim(java.lang.String input)
Default trim() function does not operate on Strings returned by an NT server. Replaces NT whitespace characters with whitespace characters that we can perform default trim() on and then performs default trim();

parseLine


public 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.


Copyright 2001 KnightRidder.com. All Rights Reserved.