Class CommandLineUtils.StringStreamConsumer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String LS  
      private java.lang.StringBuffer string  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeLine​(java.lang.String line)
      Called when the StreamPumper pumps a line from the Stream.
      java.lang.String getOutput()  
      • Methods inherited from class java.lang.Object

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

      • string

        private final java.lang.StringBuffer string
      • LS

        private static final java.lang.String LS
    • Constructor Detail

      • StringStreamConsumer

        public StringStreamConsumer()
    • Method Detail

      • consumeLine

        public void consumeLine​(java.lang.String line)
        Called when the StreamPumper pumps a line from the Stream.
        Specified by:
        consumeLine in interface StreamConsumer
        Parameters:
        line - The line to be consumed.
      • getOutput

        public java.lang.String getOutput()
        Returns:
        The output.