/** * Return <code>{@link #readByte()} != 0</code> * @return false if the byte read is zero, otherwise true * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ @Override public boolean readBoolean() throws IOException, EOFException { return 0 != readByte(); }
/** @see java.io.DataInput#readBoolean() */ public boolean readBoolean() throws IOException, EOFException { return ( 0 == readByte() ); }
@Test public void testReadByte() throws IOException { assertEquals( 0x01, this.sdis.readByte() ); }
/** * Return <code>{@link #readByte()} != 0</code> * @return false if the byte read is zero, otherwise true * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public boolean readBoolean() throws IOException, EOFException { return 0 != readByte(); }
/** * Return <code>{@link #readByte()} == 0</code> * @return the true if the byte read is zero, otherwise false * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public boolean readBoolean() throws IOException, EOFException { return ( 0 == readByte() ); }
/** * Return <code>{@link #readByte()} == 0</code> * @return the true if the byte read is zero, otherwise false * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public boolean readBoolean() throws IOException, EOFException { return ( 0 == readByte() ); }
/** * Return <code>{@link #readByte()} != 0</code> * @return false if the byte read is zero, otherwise true * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public boolean readBoolean() throws IOException, EOFException { return 0 != readByte(); }
/** * Return <code>{@link #readByte()} != 0</code> * @return false if the byte read is zero, otherwise true * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ @Override public boolean readBoolean() throws IOException, EOFException { return 0 != readByte(); }
/** * Return <code>{@link #readByte()} != 0</code> * @return false if the byte read is zero, otherwise true * @throws IOException if an I/O error occurs * @throws EOFException if an end of file is reached unexpectedly */ public boolean readBoolean() throws IOException, EOFException { return 0 != readByte(); }