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 ) ; }
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 .