public void put(int data){
  if (mBuffer.capacity() < (mLength + 1)) {
    expandBuffer(mLength + ADDITIONAL_BUFFER_SIZE);
  }
  mBuffer.put((byte)data);
  ++mLength;
}

public void put ( int data ) { if ( mBuffer . capacity ( ) < ( mLength + 1 ) ) { expandBuffer ( mLength + ADDITIONAL_BUFFER_SIZE ) ; } mBuffer . put ( ( byte ) data ) ; ++ mLength ; }
add a byte at the current position .
