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

Method checkCoderResult

lib/java/nio/charset/CharsetDecoder.java:246–254  ·  view source on GitHub ↗
(CoderResult result)

Source from the content-addressed store, hash-verified

244 * checks the result whether it needs to throw CharacterCodingException.
245 */
246 private void checkCoderResult(CoderResult result)
247 throws CharacterCodingException {
248 if (result.isMalformed() && malformAction == CodingErrorAction.REPORT) {
249 throw new MalformedInputException(result.length());
250 } else if (result.isUnmappable()
251 && unmapAction == CodingErrorAction.REPORT) {
252 throw new UnmappableCharacterException(result.length());
253 }
254 }
255
256 /*
257 * original output is full and doesn't have remaining. allocate more space

Callers 1

decodeMethod · 0.95

Calls 3

isMalformedMethod · 0.80
isUnmappableMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected