Class LSParser


  • public class LSParser
    extends java.lang.Object
    Parser for the output of ls command from any ssh server on any OS.
    Author:
    Joakim Erdfelt
    • Constructor Summary

      Constructors 
      Constructor Description
      LSParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> parseFiles​(java.lang.String rawLS)
      Parse a raw "ls -FlA", and obtain the list of files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LSParser

        public LSParser()
    • Method Detail

      • parseFiles

        public java.util.List<java.lang.String> parseFiles​(java.lang.String rawLS)
                                                    throws org.apache.maven.wagon.TransferFailedException
        Parse a raw "ls -FlA", and obtain the list of files.
        Parameters:
        rawLS - the raw LS to parse.
        Returns:
        the list of files found.
        Throws:
        org.apache.maven.wagon.TransferFailedException