public class MVSFileParser extends FTPFileParser
ignoreDateParseErrors
Constructor and Description |
---|
MVSFileParser() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDateFormat(java.lang.String dateStr) |
java.lang.String |
getDateFormatString()
Returns the date format string in use for parsing
date in the listing.
|
protected void |
guessDateFormat(java.lang.String dateStr)
This method will look at the incoming date string and
try to figure out the format of the date.
|
boolean |
isPartitionedDataset() |
protected boolean |
isValidDirectoryFormat(java.lang.String[] listing)
Returns true if this seems to be a recognized MVS folder (not PDS) listing.
|
boolean |
isValidFormat(java.lang.String[] listing)
Abstract Class Implementations
|
protected boolean |
isValidPDSFormat(java.lang.String[] listing)
Returns true if this seems to be a recognized MVS PDS listing (not folder).
|
FTPFile |
parse(java.lang.String raw)
This parses an individual line from the directory listing.
|
protected FTPFile |
parseFolder(java.lang.String[] aLine,
java.lang.String raw)
Parses a line from a folder listing.
|
protected FTPFile |
parsePDSLine(java.lang.String[] aLine,
java.lang.String raw)
Parses a Partitioned Dataset Entry, and returns an FTPFile object.
|
void |
setDateFormatString(java.lang.String value)
Provides ability to pre-specify the format
that the parser will use to parse dates.
|
void |
setLocale(java.util.Locale arg0)
Could in theory be used to figure out the format of the date/time
except that I'd need time on the server to see if this actually
works that way.
|
protected java.lang.String[] |
splitMVSLine(java.lang.String raw)
This is a split + trim function.
|
java.lang.String |
toString()
Returns parser name.
|
isMultiLine, setIgnoreDateParseErrors, split, split, split, trimStart
public boolean isValidFormat(java.lang.String[] listing)
isValidFormat
in class FTPFileParser
listing
- listing to testpublic FTPFile parse(java.lang.String raw) throws java.text.ParseException
parse
in class FTPFileParser
raw
- raw string to parsejava.text.ParseException
public void setLocale(java.util.Locale arg0)
setLocale
in class FTPFileParser
arg0
- locale to setpublic java.lang.String toString()
toString
in class java.lang.Object
protected FTPFile parsePDSLine(java.lang.String[] aLine, java.lang.String raw) throws java.text.ParseException
aLine
- Split lineraw
- Unparsed raw stringjava.text.ParseException
protected FTPFile parseFolder(java.lang.String[] aLine, java.lang.String raw)
aLine
- Line split apartraw
- Raw line from the transportprotected java.lang.String[] splitMVSLine(java.lang.String raw)
raw
- The string to tokenize from the MainFrameprotected boolean isValidDirectoryFormat(java.lang.String[] listing)
listing
- protected boolean isValidPDSFormat(java.lang.String[] listing)
listing
- protected boolean checkDateFormat(java.lang.String dateStr)
protected void guessDateFormat(java.lang.String dateStr)
dateStr
- public boolean isPartitionedDataset()
public java.lang.String getDateFormatString()
public void setDateFormatString(java.lang.String value)
value
- the string to set.Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.