Class StandardProcessCloser

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.io.IOException add​(java.io.IOException exception, java.io.IOException newException)  
      void close​(java.lang.Process process)
      Closes standard streams of a given sub process.
      private void closeStreams​(java.lang.Process process)
      Close the streams belonging to the given Process.
      • Methods inherited from class java.lang.Object

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

      • log

        private static final org.slf4j.Logger log
    • Method Detail

      • close

        public void close​(java.lang.Process process)
                   throws java.io.IOException,
                          java.lang.InterruptedException
        Description copied from interface: ProcessCloser
        Closes standard streams of a given sub process.
        Specified by:
        close in interface ProcessCloser
        Parameters:
        process - sub process (not null).
        Throws:
        java.io.IOException - if I/O errors occur while closing the underlying stream
        java.lang.InterruptedException - if underlying throws a InterruptedException
      • closeStreams

        private void closeStreams​(java.lang.Process process)
                           throws java.io.IOException
        Close the streams belonging to the given Process.
        Throws:
        java.io.IOException
      • add

        private static java.io.IOException add​(java.io.IOException exception,
                                               java.io.IOException newException)