public synchronized boolean put ( byte value ) { if ( available == capacity ) { return false ; } buffer [ idxPut ] = value ; idxPut = ( idxPut + 1 ) % capacity ; available ++ ; return true ; }
Puts a single byte if the buffer is not yet full .