MCPcopy Create free account
hub / github.com/davidgiven/luje / flush

Method flush

lib/java/nio/charset/CharsetDecoder.java:485–494  ·  view source on GitHub ↗

Flushes this decoder. This method will call #implFlush(CharBuffer) implFlush. Some decoders may need to write some characters to the output buffer when they have read all input bytes; subclasses can override #implFlush(CharBuffer) implFlush to perform the writing operation. The

(CharBuffer out)

Source from the content-addressed store, hash-verified

483 * for the last boolean parameter.
484 */
485 public final CoderResult flush(CharBuffer out) {
486 if (status != END && status != INIT) {
487 throw new IllegalStateException();
488 }
489 CoderResult result = implFlush(out);
490 if (result == CoderResult.UNDERFLOW) {
491 status = FLUSH;
492 }
493 return result;
494 }
495
496 /**
497 * Flushes this decoder. The default implementation does nothing and always

Callers 1

decodeMethod · 0.95

Calls 1

implFlushMethod · 0.95

Tested by

no test coverage detected