Returns the implementation-defined result of writing the output.
Returns true
when the next write(number) will succeed.
i.e. this Output
is in the cont state.
Returns true
when no write
will ever again suucced.
i.e. this Output
is in the done state.
Returns true
when an immediate write
will fail due to an
error with the token stream. i.e. this Output
is in the error
state.
When true
, trap()
will return the output error.
Returns true
when an immediate write
will fail, but writes may succeed
at some point in the future. i.e. this Output
is in the full state.
Returns the output error. Only guaranteed to return an error when in the error state.
Returns an OutputBuffer
in the done state, that binds a null
result.
Returns an OutputBuffer
in the error state, with the given output error
.
Returns an OutputBuffer
in the full state, that binds a null
result.
Non-blocking token stream buffer.