format/src/main/java/com/github/sadikovi/riff/io/InStream.java
/**
   * Read single byte from buffer.
   * Method buffers source when necessary.
   * @return byte value as integer
   * @throws IOException
   */
Read single byte from buffer.
Method buffers source when necessary.
@return byte value as integer
@throws IOException
Read single byte from buffer . Method buffers source when necessary . @return byte value as integer @throws IOException
@Override
  public int read() throws IOException {
    int bytes = read(this.buf, 0, 1);
    if (bytes != 1) throw new IOException("EOF, " + bytes + " bytes != 1");
    return this.buf[0] & 0xff;
  }
@ Override public int read ( ) throws IOException { int bytes = read ( this . buf , 0 , 1 ) ; if ( bytes != 1 ) throw new IOException ( "EOF, " + bytes + " bytes != 1" ) ; return this . buf [ 0 ] & 0xff ; }
Read single byte from buffer.
Read single byte from buffer .