protected int readByte ( InputStream is ) throws IOException { byte [ ] data = new byte [ 1 ] ; if ( is . read ( data ) != data . length ) { throw new EOFException ( ) ; } return ( MPPUtility . getByte ( data , 0 ) ) ; }
This method reads a single byte from the input stream .