53 Bit(
final int v) { value = v; }
65 public boolean isSet(
final Bit bit) {
return bit.value == (
mask & bit.value ); }
75 final int r =
mask & bits;
76 if( r ==
mask ) {
return this; }
80 private static native String to_string(
final int mask);
84 return to_string(
mask);
88 public boolean equals(
final Object other) {
92 return (other instanceof
IOState) &&
93 this.mask == ((
IOState)other).mask;
Mimic std::ios_base::iostate for state functionality, see iostate_func.
boolean isSet(final Bit bit)
boolean equals(final Object other)
IOState mask(final int bits)
goodbit
No error occurred nor has EOS being reached.
none
No error occurred nor has EOS being reached.
badbit
Irrecoverable stream error, including loss of integrity of the underlying stream or media.
failbit
Input or output operation failed (formatting or extraction error).
eofbit
An input operation reached the end of its stream.
timeout
Input or output operation failed due to timeout.