Microsoft SDK for Java

IDataStream.readBoolean

Reads a single byte from this stream.

Syntax

public boolean readBoolean()

Return Value

Returns true if the byte is non-zero, or returns false if the byte is zero.

Exceptions

IOException thrown if an input/output (I/O) error occurs or if the stream does not support reading.

EOFException thrown if the stream is at the end.

Remarks

The current position of the stream is advanced by one byte.

See Also   writeBoolean

© 1999 Microsoft Corporation. All rights reserved. Terms of use.