Microsoft SDK for Java

IByteStream.canWrite

Determines whether this stream supports writing.

Syntax

public boolean canWrite()

Return Value

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

Exceptions

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

Remarks

If a stream does not support writing, calls to the write method always raise exceptions.

See Also   write

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