|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.batchadapter.heuristics.FtpHeuristics
public class FtpHeuristics
This class represents the FtpHeuristics configuration file.
Field Summary | |
---|---|
static java.lang.String |
UNIX_DIR_LISTING_STYLE
|
Constructor Summary | |
---|---|
FtpHeuristics()
Constructs a new FtpHeuristics object using default directory listing style. |
|
FtpHeuristics(java.lang.String style)
Constructs a new FtpHeuristics object using specified directory listing style. |
Method Summary | |
---|---|
java.lang.String |
buildFullFileName(java.lang.String dirName,
java.lang.String baseFileName)
Creates a remote path name taking into consideration any special enveloping characters for the absolute path name and absolute path-name delimiters on the remote FTP host. |
java.lang.String |
escapeRegExpChars(java.lang.String input)
Allows you to escape all regular expression special characters in an input string. |
java.lang.String |
getAbsPathDelims()
Accessor - Get Absolute Path Delimiters. |
java.lang.String |
getAbsPathEnvelope()
Gets Absolute Path Envelope. |
java.lang.String |
getBaseFileName(java.lang.String fullFileName)
Strips off the base name of a fully qualified remote file name, pursuant to any special enveloping characters for the absolute path name and absolute path-name delimiters on the remote FTP host. |
java.lang.String |
getDirectoryName(java.lang.String fullFileName)
Strips off the base name of a fully qualified remote file name, pursuant to any special enveloping characters for the absolute path name and absolute path-name delimiters on the remote FTP host. |
java.lang.String |
getDirectoryRegex()
Gets Directory Regular Expression. |
java.lang.String |
getDirListingStyle()
Gets Dir Listing Style. |
java.lang.String |
getEndingFileDelimiter()
Gets Ending File Delimiter. |
int |
getFileExtLength()
Gets File Ext Length. |
int |
getFileExtPosn()
Gets File Ext Position. |
java.lang.String |
getFileLinkRegex()
Gets File Link Regular Expression. |
int |
getFileNameLength()
Gets File Name Length. |
int |
getFileNamePosn()
Gets File Name Position. |
int |
getFileSizeLength()
Gets File Size Length. |
int |
getFileSizePosn()
Gets File Size Position. |
int |
getHeaderSkipLines()
Gets Header Skip Lines. |
java.lang.String |
getHeaderSkipRegex()
Gets Header Skip Regular Expression. |
java.lang.String |
getInitDirDelimiter()
Gets Initial Dir Delimiter. |
java.lang.String |
getInitFileDelimiter()
Gets Initial File Delimiter. |
java.lang.String |
getInterDirDelimiter()
Gets Inter Dir Delimiter. |
java.lang.String |
getLinkSymbolRegex()
Gets Link Symbol Regular Expression. |
java.lang.String |
getListLineFormat()
Gets List Line Format. |
java.util.Properties |
getProps()
Gets Properties. |
java.lang.String |
getSupportCmdMask()
Gets Support Cmd Mask. |
int |
getTrailerSkipLines()
Gets Trailer Skip Lines. |
java.lang.String |
getTrailerSkipRegex()
Gets Trailer Skip Regular Expression. |
int |
getValidFileLineMinPosn()
Gets Valid File Line Min Position. |
boolean |
isBlankDelimited()
Gets the status of Blank Delimited. |
boolean |
isCdBeforeListing()
Gets the status of Change Dir Before Listing. |
boolean |
isDirRequireTerminator()
Gets the status of Dir Require Terminator. |
boolean |
isFileLinkRealData()
Gets the status of File Link Real Data. |
boolean |
isFileNameIsLastObject()
Gets the status of File Name Is Last Object. |
boolean |
isFileSizeVerifiable()
Gets the status of File Size Verifiable. |
boolean |
isFixedFormat()
Gets the status of Fixed Format. |
boolean |
isListDirYieldsAbsPath()
Gets the status of List Dir Yields Absolute Path. |
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
java.lang.String[] |
skipLines(java.lang.String[] lines)
Parses raw input lines. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNIX_DIR_LISTING_STYLE
Constructor Detail |
---|
public FtpHeuristics() throws java.lang.Exception
java.lang.Exception
- If some error occurs.public FtpHeuristics(java.lang.String style) throws java.lang.Exception
style
- The directory listing style.
java.lang.Exception
- If some error occurs.Method Detail |
---|
public java.lang.String getAbsPathDelims()
public java.lang.String getAbsPathEnvelope()
public java.lang.String getDirectoryRegex()
public java.lang.String getDirListingStyle()
public int getFileExtLength()
public int getFileExtPosn()
public java.lang.String getFileLinkRegex()
public int getFileNameLength()
public int getFileNamePosn()
public int getFileSizeLength()
public int getFileSizePosn()
public int getHeaderSkipLines()
public java.lang.String getHeaderSkipRegex()
public java.lang.String getLinkSymbolRegex()
public java.lang.String getListLineFormat()
public java.util.Properties getProps()
public java.lang.String getSupportCmdMask()
public int getTrailerSkipLines()
public java.lang.String getTrailerSkipRegex()
public int getValidFileLineMinPosn()
public boolean isCdBeforeListing()
public boolean isDirRequireTerminator()
public boolean isFileLinkRealData()
public boolean isFileNameIsLastObject()
public boolean isFileSizeVerifiable()
public boolean isListDirYieldsAbsPath()
public java.lang.String buildFullFileName(java.lang.String dirName, java.lang.String baseFileName)
dirName
- The remote directory name.baseFileName
- The remote base file name.
public java.lang.String getBaseFileName(java.lang.String fullFileName)
fullFileName
- The full remote file name.
public java.lang.String getEndingFileDelimiter()
public java.lang.String getInitDirDelimiter()
public java.lang.String getInitFileDelimiter()
public java.lang.String getInterDirDelimiter()
public boolean isBlankDelimited()
public boolean isFixedFormat()
public java.lang.String[] skipLines(java.lang.String[] lines)
lines
- The raw lines to be parsed.
public java.lang.String getDirectoryName(java.lang.String fullFileName)
fullFileName
- The full remote file name.
public static void main(java.lang.String[] args)
args
- Command line parameters.public java.lang.String escapeRegExpChars(java.lang.String input)
input
- Original input non-escaped string.
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |