Converts the given ByteChunk to a String using the cache. @param bc the ByteChunk to convert @return the resulting String
(ByteChunk bc)
| 257 | * @return the resulting String |
| 258 | */ |
| 259 | public static String toString(ByteChunk bc) { |
| 260 | try { |
| 261 | return toString(bc, CodingErrorAction.REPLACE, CodingErrorAction.REPLACE); |
| 262 | } catch (CharacterCodingException e) { |
| 263 | // Unreachable code. Use of REPLACE above means the exception will never be thrown. |
| 264 | throw new IllegalStateException(e); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | |
| 269 | /** |