Microsoft SDK for Java

IByteStream.canRead

Determines whether this stream supports reading.

Syntax

public boolean canRead()

Return Value

Returns true if the stream supports reading; otherwise, returns false.

Exceptions

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

Remarks

If a stream does not support reading, calls to the read method always raise exceptions.

See Also   read

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