code: public synchronized boolean getBoolean()
     {
        final byte value = get();
        if(value == CommsConstants.TRUE_BYTE) return true;
        else if(value == CommsConstants.FALSE_BYTE) return false;
        else throw new IllegalStateException("Unexpected byte: " + value);     
     }
docs: Returns the next value in the buffer interpreted as a boolean. Should only be called when
  the next byte in the buffer was written by a call to putBoolean.
  
  @return the next value in the buffer interpreted as a boolean.