public void close() throws IOException {
        if (outStream == null && outWriter == null) {
            throw new IllegalStateException();
        }
        if (outStream != null) {
            outStream.close();
        }
        if (outWriter != null) {
            outWriter.close();
        }
    }
public void close ( ) throws IOException { if ( outStream == null && outWriter == null ) { throw new IllegalStateException ( ) ; } if ( outStream != null ) { outStream . close ( ) ; } if ( outWriter != null ) { outWriter . close ( ) ; } }
Close output.

@throws IOException if closing result output failed