软件包 | 描述 |
---|---|
java.nio.charset |
定义了字符集,解码器和编码器,字节和Unicode字符之间的转换。
|
Modifier and Type | Class and Description |
---|---|
class |
MalformedInputException
检查异常输入字节序列时是不合法的字符被给予,或输入字符序列不是一个合法的十六位Unicode序列。
|
class |
UnmappableCharacterException
当一个输入字符(或字节)序列是有效的,但不能被映射到一个输出字节(或字符)序列检查异常抛出。
|
Modifier and Type | Method and Description |
---|---|
CharBuffer |
CharsetDecoder.decode(ByteBuffer in)
方便的方法,将一个单输入字节缓冲区剩余内容到新分配的字符缓冲区。
|
ByteBuffer |
CharsetEncoder.encode(CharBuffer in)
将单个输入字符缓冲区的其余内容编码成新分配的字节缓冲区的方便方法。
|
void |
CoderResult.throwException()
抛出一个与此对象所描述的结果的异常。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.