Mimic std::ios_base::iostate for state functionality, see iostate_func.
Supporting std::basic_ios's iostate functionality for all ByteInStream implementations.
void clear(final IOState state)
Clears state flags by assignment to the given value.
boolean fail()
Checks if an error has occurred.
boolean bad()
Checks if a non-recoverable error has occurred.
void setState(final IOState state)
Sets state flags, by keeping its previous bits.
IOState rdState()
Returns the current state flags.
boolean good()
Checks if no error nor eof() has occurred i.e.
boolean timeout()
Checks if a timeout (non-recoverable) has occurred.
boolean eof()
Checks if end-of-file has been reached.