Class MVSFTPEntryParser

    • Constructor Detail

      • MVSFTPEntryParser

        public MVSFTPEntryParser()
        The sole constructor for a MVSFTPEntryParser object.
    • Method Detail

      • parseFTPEntry

        public FTPFile parseFTPEntry​(java.lang.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. If the file listing line doesn't describe a file, then null is returned. Otherwise, a FTPFile instance representing the file is returned.
        Parameters:
        entry - A line of text from the file listing
        Returns:
        An FTPFile instance corresponding to the supplied entry
      • preParse

        public java.util.List<java.lang.String> preParse​(java.util.List<java.lang.String> orig)
        Pre-parses is called as part of the interface. Per definition, it is called before the parsing takes place. Three kinds of lists are recognized:
        • z/OS-MVS File lists,
        • z/OS-MVS Member lists,
        • Unix file lists.
        Specified by:
        preParse in interface FTPFileEntryParser
        Overrides:
        preParse in class FTPFileEntryParserImpl
        Parameters:
        orig - Original list after it has been created from the server stream
        Returns:
        original unmodified.
        Since:
        2.0