(CoderResult result)
| 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 |
no test coverage detected