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 an 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)
        preParse is called as part of the interface. Per definition is is called before the parsing takes place. Three kind of lists is recognize: 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