public final boolean readBoolean() throws java.io.IOException {
  int temp=in.read();
  if (temp < 0) {
    throw new EOFException();
  }
  return temp != 0;
}

public final boolean readBoolean ( ) throws java . io . IOException { int temp = in . read ( ) ; if ( temp < 0 ) { throw new EOFException ( ) ; } return temp != 0 ; }
see the general contract of the readboolean method of datainput . bytes for this operation are read from the contained input stream .
