Microsoft SDK for Java

DataStream.canWrite

Determines whether this stream supports reading.

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

This method implements the IByteStream.canWrite method. This default method always returns true, but a subclass can override this method to provide the appropriate functionality.

See Also   write

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