Class ThreadedStreamConsumer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.maven.shared.utils.cli.StreamConsumer

    public final class ThreadedStreamConsumer
    extends java.lang.Object
    implements org.apache.maven.shared.utils.cli.StreamConsumer, java.io.Closeable
    Knows how to reconstruct *all* the state transmitted over stdout by the forked process.
    Author:
    Kristian Rosenvold
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadedStreamConsumer​(org.apache.maven.shared.utils.cli.StreamConsumer target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void consumeLine​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • ThreadedStreamConsumer

        public ThreadedStreamConsumer​(org.apache.maven.shared.utils.cli.StreamConsumer target)
    • Method Detail

      • consumeLine

        public void consumeLine​(java.lang.String s)
        Specified by:
        consumeLine in interface org.apache.maven.shared.utils.cli.StreamConsumer
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException