Class RawStreamPumper

  • All Implemented Interfaces:
    java.lang.Runnable

    public class RawStreamPumper
    extends java.lang.Thread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) byte[] buffer  
      (package private) boolean done  
      private java.io.InputStream in  
      private java.io.OutputStream out  
      (package private) boolean poll  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      RawStreamPumper​(java.io.InputStream in, java.io.OutputStream out)  
      RawStreamPumper​(java.io.InputStream in, java.io.OutputStream out, boolean poll)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeInput()  
      void closeOutput()  
      void run()  
      void setDone()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

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

      • in

        private java.io.InputStream in
      • out

        private java.io.OutputStream out
      • done

        boolean done
      • poll

        boolean poll
      • buffer

        byte[] buffer
    • Constructor Detail

      • RawStreamPumper

        public RawStreamPumper​(java.io.InputStream in,
                               java.io.OutputStream out,
                               boolean poll)
      • RawStreamPumper

        public RawStreamPumper​(java.io.InputStream in,
                               java.io.OutputStream out)
    • Method Detail

      • setDone

        public void setDone()
      • closeInput

        public void closeInput()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • closeOutput

        public void closeOutput()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread