Class CloseIS

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class CloseIS
    extends java.io.FilterInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Thread copier  
      private static int COPY_BUFFER_SIZE  
      private java.lang.String errorText  
      private java.io.IOException exception  
      private java.io.OutputStream input  
      private static java.util.logging.Logger LOG  
      private java.io.InputStream output  
      private java.lang.Process proc  
      private java.lang.Thread stdError  
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      CloseIS​(java.lang.Process proc, java.io.InputStream compressed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      private void handledOccuredException​(int result)  
      int read()  
      int read​(byte[] b, int off, int len)  
      private void start()
      start all threads.
      • Methods inherited from class java.io.FilterInputStream

        available, mark, markSupported, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

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

      • LOG

        private static final java.util.logging.Logger LOG
      • output

        private java.io.InputStream output
      • input

        private java.io.OutputStream input
      • errorText

        private java.lang.String errorText
      • exception

        private java.io.IOException exception
      • stdError

        private final java.lang.Thread stdError
      • copier

        private final java.lang.Thread copier
      • proc

        private final java.lang.Process proc
    • Constructor Detail

      • CloseIS

        public CloseIS​(java.lang.Process proc,
                       java.io.InputStream compressed)
    • Method Detail

      • start

        private void start()
        start all threads.
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • handledOccuredException

        private void handledOccuredException​(int result)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • close

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