public void close() throws IOException {
  if (stream != null) {
    stream.close();
  }
 else {
    reader.close();
  }
}

public void close ( ) throws IOException { if ( stream != null ) { stream . close ( ) ; } else { reader . close ( ) ; } }
close the underlying resource .
