is_writable


Description:

public abstract bool is_writable ()

Checks if this can be written.

Note that some stream types may not be able to implement this 100% reliably, and it is possible that a call to write after this returns true would still block. To guarantee non-blocking behavior, you should always use write_nonblocking, which will return a g_io_error_would_block error rather than blocking.

The behaviour of this method is undefined if can_poll returns false for this.

Parameters:

this

a PollableOutputStream.

Returns:

true if this is writable, false if not. If an error has occurred on this, this will result in is_writable returning true, and the next attempt to write will return the error.