public boolean unpackBoolean ( ) throws IOException { byte b = readByte ( ) ; if ( b == Code . FALSE ) { return false ; } else if ( b == Code . TRUE ) { return true ; } throw unexpected ( "boolean" , b ) ; }
Reads true or false .