Class ExecuteCommand.StreamReader

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ExecuteCommand

    public static class ExecuteCommand.StreamReader
    extends java.lang.Thread
    Local thread that reads an input stream and buffers the stream in a string buffer.
    • 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
      java.lang.StringBuffer buffer
      the string buffer to buffer data into
      java.io.BufferedReader reader
      the stream to read from
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamReader​(java.io.InputStream is)
      Constructor for the StreamReader object
      StreamReader​(java.io.InputStream is, java.lang.String encoding)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Main processing method for the StreamReader object
      • Methods inherited from class java.lang.Thread

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

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

      • reader

        public java.io.BufferedReader reader
        the stream to read from
      • buffer

        public java.lang.StringBuffer buffer
        the string buffer to buffer data into
    • Constructor Detail

      • StreamReader

        public StreamReader​(java.io.InputStream is)
        Constructor for the StreamReader object
        Parameters:
        is - the reader to read from
      • StreamReader

        public StreamReader​(java.io.InputStream is,
                            java.lang.String encoding)
    • Method Detail

      • run

        public void run()
        Main processing method for the StreamReader object
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread