296 |
cachedEncoder = newEncoder () |
cachedEncoder = newEncoder () |
297 |
.onMalformedInput (CodingErrorAction.REPLACE) |
.onMalformedInput (CodingErrorAction.REPLACE) |
298 |
.onUnmappableCharacter (CodingErrorAction.REPLACE); |
.onUnmappableCharacter (CodingErrorAction.REPLACE); |
299 |
} |
} else |
300 |
|
cachedEncoder.reset(); |
301 |
return cachedEncoder.encode (cb); |
return cachedEncoder.encode (cb); |
302 |
} |
} |
303 |
} |
} |
327 |
cachedDecoder = newDecoder () |
cachedDecoder = newDecoder () |
328 |
.onMalformedInput (CodingErrorAction.REPLACE) |
.onMalformedInput (CodingErrorAction.REPLACE) |
329 |
.onUnmappableCharacter (CodingErrorAction.REPLACE); |
.onUnmappableCharacter (CodingErrorAction.REPLACE); |
330 |
} |
} else |
331 |
|
cachedDecoder.reset(); |
332 |
|
|
333 |
return cachedDecoder.decode (bb); |
return cachedDecoder.decode (bb); |
334 |
} |
} |