Determines whether this stream supports writing.
public boolean canWrite()
Returns true if the stream supports writing; otherwise, returns false.
IOException thrown if an I/O error occurs or if the stream does not support writing.
If a stream does not support writing, calls to the write method always raise exceptions.
See Also write