public void close() throws IOException {
        if (response == null || closed)
            // multiple calls to close is OK
            return;
        flush();
        if (out != null)
            out.close();
        out = null;
        byteOut = null;
        closed = true;
    }
public void close() throws IOException {
        if (response == null || closed)
            
            return;
        flush();
        if (out != null)
            out.close();
        out = null;
        byteOut = null;
        closed = true;
    }
public void close ( ) throws IOException { if ( response == null || closed ) // multiple calls to close is OK return ; flush ( ) ; if ( out != null ) out . close ( ) ; out = null ; byteOut = null ; closed = true ; }
Close the stream.
Close the stream .