httpservices/src/main/java/ucar/httpservices/HTTPMethodStream.java
@Override
    public void close() throws IOException
    {
        if(closed)
            return; /* Allow multiple close calls */
        closed = true;
        try {
            consume();
        } finally {
            super.close();
        }
        if(method != null) method.close();
    }
@Override
    public void close() throws IOException
    {
        if(closed)
            return; /* Allow multiple close calls */
        closed = true;
        try {
            consume();
        } finally {
            super.close();
        }
        if(method != null) method.close();
    }
@ Override public void close ( ) throws IOException { if ( closed ) return ; /* Allow multiple close calls */ closed = true ; try { consume ( ) ; } finally { super . close ( ) ; } if ( method != null ) method . close ( ) ; }
Closes this input stream and releases any system resources associated
with the stream; closes the method also.

@exception  IOException  if an I/O error occurs; but not if close
is called twice.
Closes this input stream and releases any system resources associated with the stream ; closes the method also .