public class MVSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl
FTPFileEntryParser and Configurable for IBM zOS/MVS Systems.Usage instructions.| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
DEFAULT_DATE_FORMAT
Dates are ignored for file lists, but are used for member lists where possible
|
(package private) static String |
FILE_LIST_REGEX
Matches these entries:
|
(package private) static int |
FILE_LIST_TYPE |
(package private) static String |
JES_LEVEL_1_LIST_REGEX
Matches these entries, note: no header:
|
(package private) static int |
JES_LEVEL_1_LIST_TYPE |
(package private) static String |
JES_LEVEL_2_LIST_REGEX
JES INTERFACE LEVEL 2 parser Matches these entries:
|
(package private) static int |
JES_LEVEL_2_LIST_TYPE |
(package private) static String |
MEMBER_LIST_REGEX
Matches these entries:
|
(package private) static int |
MEMBER_LIST_TYPE |
(package private) static int |
UNIX_LIST_TYPE |
(package private) static int |
UNKNOWN_LIST_TYPE |
_matcher_| Constructor and Description |
|---|
MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.
|
| Modifier and Type | Method and Description |
|---|---|
protected FTPClientConfig |
getDefaultConfiguration()
Each concrete subclass must define this member to create a default configuration to be used when that subclass is instantiated without a
FTPClientConfig parameter being specified. |
FTPFile |
parseFTPEntry(String entry)
Parses a line of a z/OS - MVS FTP server file listing and converts it into a usable format in the form of an
FTPFile instance. |
List<String> |
preParse(List<String> orig)
Pre-parses is called as part of the interface.
|
(package private) void |
setType(int type)
Sets the type of listing being processed.
|
configure, parseTimestampgetGroupCnt, getGroupsAsString, group, matches, setRegex, setRegexreadNextEntrystatic final String DEFAULT_DATE_FORMAT
static final String FILE_LIST_REGEX
Volume Unit Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname B10142 3390 2006/03/20 2 31 F 80 80 PS MDI.OKL.WORK
static final int FILE_LIST_TYPE
static final String JES_LEVEL_1_LIST_REGEX
IBMUSER1 JOB01906 OUTPUT 3 Spool Files
012345678901234567890123456789012345678901234
1 2 3 4
static final int JES_LEVEL_1_LIST_TYPE
static final String JES_LEVEL_2_LIST_REGEX
JOBNAME JOBID OWNER STATUS CLASS IBMUSER1 JOB01906 IBMUSER OUTPUT A RC=0000 3 spool files IBMUSER TSU01830 IBMUSER OUTPUT TSU ABEND=522 3 spool filesSample output from FTP session:
ftp> quote site filetype=jes 200 SITE command was accepted ftp> ls 200 Port request OK. 125 List started OK for JESJOBNAME=IBMUSER*, JESSTATUS=ALL and JESOWNER=IBMUSER JOBNAME JOBID OWNER STATUS CLASS IBMUSER1 JOB01906 IBMUSER OUTPUT A RC=0000 3 spool files IBMUSER TSU01830 IBMUSER OUTPUT TSU ABEND=522 3 spool files 250 List completed successfully. ftp> ls job01906 200 Port request OK. 125 List started OK for JESJOBNAME=IBMUSER*, JESSTATUS=ALL and JESOWNER=IBMUSER JOBNAME JOBID OWNER STATUS CLASS IBMUSER1 JOB01906 IBMUSER OUTPUT A RC=0000 -------- ID STEPNAME PROCSTEP C DDNAME BYTE-COUNT 001 JES2 A JESMSGLG 858 002 JES2 A JESJCL 128 003 JES2 A JESYSMSG 443 3 spool files 250 List completed successfully.
static final int JES_LEVEL_2_LIST_TYPE
static final String MEMBER_LIST_REGEX
Name VV.MM Created Changed Size Init Mod Id TBSHELF 01.03 2002/09/12 2002/10/11 09:37 11 11 0 KIL001
static final int MEMBER_LIST_TYPE
static final int UNIX_LIST_TYPE
static final int UNKNOWN_LIST_TYPE
public MVSFTPEntryParser()
protected FTPClientConfig getDefaultConfiguration()
ConfigurableFTPFileEntryParserImplFTPClientConfig parameter being specified.getDefaultConfiguration in class ConfigurableFTPFileEntryParserImplpublic FTPFile parseFTPEntry(String entry)
FTPFile instance. If the
file listing line doesn't describe a file, then null is returned. Otherwise, a FTPFile instance representing the file is
returned.entry - A line of text from the file listingpublic List<String> preParse(List<String> orig)
preParse in interface FTPFileEntryParserpreParse in class FTPFileEntryParserImplorig - Original list after it has been created from the server streamoriginal unmodified.void setType(int type)
type - The listing type.