protected void bufferize ( byte b ) { if ( index == buffer . length ) { byte [ ] newBuffer = new byte [ buffer . length * 2 ] ; System . arraycopy ( buffer , 0 , newBuffer , 0 , index ) ; buffer = newBuffer ; } buffer [ index ++ ] = b ; }
Stores the byte to the internal buffer in order to get a chunk of data latter .