@ 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 .