public void writeBytes(final byte[] bytes){
  if (bytes == null)   return;
  if (currentBitIndex < Byte.SIZE - 1) {
    for (int i=0; i < bytes.length; i++) {
      write(bytes[i],Byte.SIZE);
    }
  }
 else {
    byteStream.write(bytes,0,bytes.length);
  }
}

public void writeBytes ( final byte [ ] bytes ) { if ( bytes == null ) return ; if ( currentBitIndex < Byte . SIZE - 1 ) { for ( int i = 0 ; i < bytes . length ; i ++ ) { write ( bytes [ i ] , Byte . SIZE ) ; } } else { byteStream . write ( bytes , 0 , bytes . length ) ; } }
writes a sequence of bytes to the stream .
