public class MVSFileParser
extends com.enterprisedt.net.ftp.FTPFileParser
Constructor and Description |
---|
MVSFileParser(LogChannelInterface log) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDateFormat(String dateStr) |
String |
getDateFormatString()
Returns the date format string in use for parsing date in the listing.
|
protected void |
guessDateFormat(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(String[] listing)
Returns true if this seems to be a recognized MVS folder (not PDS) listing.
|
boolean |
isValidFormat(String[] listing)
Abstract Class Implementations
|
protected boolean |
isValidPDSFormat(String[] listing)
Returns true if this seems to be a recognized MVS PDS listing (not folder).
|
com.enterprisedt.net.ftp.FTPFile |
parse(String raw)
This parses an individual line from the directory listing.
|
protected com.enterprisedt.net.ftp.FTPFile |
parseFolder(String[] aLine,
String raw)
Parses a line from a folder listing.
|
protected com.enterprisedt.net.ftp.FTPFile |
parsePDSLine(String[] aLine,
String raw)
Parses a Partitioned Dataset Entry, and returns an FTPFile object.
|
void |
setDateFormatString(String value)
Provides ability to pre-specify the format that the parser will use to parse dates.
|
void |
setLocale(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 String[] |
splitMVSLine(String raw)
This is a split + trim function.
|
String |
toString()
Returns parser name.
|
public MVSFileParser(LogChannelInterface log)
public boolean isValidFormat(String[] listing)
isValidFormat
in class com.enterprisedt.net.ftp.FTPFileParser
public com.enterprisedt.net.ftp.FTPFile parse(String raw) throws ParseException
parse
in class com.enterprisedt.net.ftp.FTPFileParser
ParseException
public void setLocale(Locale arg0)
setLocale
in class com.enterprisedt.net.ftp.FTPFileParser
public String toString()
protected com.enterprisedt.net.ftp.FTPFile parsePDSLine(String[] aLine, String raw) throws ParseException
aLine
- Split lineraw
- Unparsed raw stringParseException
protected com.enterprisedt.net.ftp.FTPFile parseFolder(String[] aLine, String raw)
aLine
- Line split apartraw
- Raw line from the transportprotected String[] splitMVSLine(String raw)
raw
- The string to tokenize from the MainFrameprotected boolean isValidDirectoryFormat(String[] listing)
listing
- protected boolean isValidPDSFormat(String[] listing)
listing
- protected boolean checkDateFormat(String dateStr)
protected void guessDateFormat(String dateStr)
dateStr
- public boolean isPartitionedDataset()
public String getDateFormatString()
public void setDateFormatString(String value)
value
- the string to set.Copyright © 2018 Hitachi Vantara. All rights reserved.