public int read() throws IOException {
  if (stream != null) {
    return stream.read();
  }
 else {
    return reader.read();
  }
}

public int read ( ) throws IOException { if ( stream != null ) { return stream . read ( ) ; } else { return reader . read ( ) ; } }
read from the underlying resource .
