public void addByte ( int b ) throws IOException { int nextHead = ( _byteHead + 1 ) % _byteBuffer . length ; while ( nextHead == _byteTail ) { int ch = readChar ( ) ; if ( ch < 0 ) { break ; } outputChar ( ch ) ; } _byteBuffer [ _byteHead ] = ( byte ) b ; _byteHead = nextHead ; }
Adds the next byte .