public int bitsLeft(){
  return (byteStream.available() * Byte.SIZE) + (currentBitIndex + 1);
}

public int bitsLeft ( ) { return ( byteStream . available ( ) * Byte . SIZE ) + ( currentBitIndex + 1 ) ; }
gets the number of remaining bits that can be read from the datagram .
