jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Supporting std::basic_ios's iostate functionality for all ByteInStream implementations. More...
Public Member Functions | |
void | clear (final IOState state) |
Clears state flags by assignment to the given value. More... | |
IOState | rdState () |
Returns the current state flags. More... | |
void | setState (final IOState state) |
Sets state flags, by keeping its previous bits. More... | |
boolean | good () |
Checks if no error nor eof() has occurred i.e. More... | |
boolean | eof () |
Checks if end-of-file has been reached. More... | |
boolean | fail () |
Checks if an error has occurred. More... | |
boolean | bad () |
Checks if a non-recoverable error has occurred. More... | |
boolean | timeout () |
Checks if a timeout (non-recoverable) has occurred. More... | |
Supporting std::basic_ios's iostate functionality for all ByteInStream implementations.
Definition at line 29 of file IOStateFunc.java.
boolean org.jau.io.IOStateFunc.bad | ( | ) |
Checks if a non-recoverable error has occurred.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
void org.jau.io.IOStateFunc.clear | ( | final IOState | state | ) |
Clears state flags by assignment to the given value.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
boolean org.jau.io.IOStateFunc.eof | ( | ) |
Checks if end-of-file has been reached.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
boolean org.jau.io.IOStateFunc.fail | ( | ) |
Checks if an error has occurred.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
boolean org.jau.io.IOStateFunc.good | ( | ) |
Checks if no error nor eof() has occurred i.e.
I/O operations are available.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
IOState org.jau.io.IOStateFunc.rdState | ( | ) |
Returns the current state flags.
Method is marked virtual
to allow implementations with asynchronous resources to determine or update the current iostate.
Method is used throughout all query members and setstate(), hence they all will use the updated state from a potential override implementation.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
void org.jau.io.IOStateFunc.setState | ( | final IOState | state | ) |
Sets state flags, by keeping its previous bits.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.
boolean org.jau.io.IOStateFunc.timeout | ( | ) |
Checks if a timeout (non-recoverable) has occurred.
Implemented in org.jau.io.ByteInStream_Feed, org.jau.io.ByteInStream_File, org.jau.io.ByteInStream_URL, and org.jau.io.ByteOutStream_File.