软件包 | 描述 |
---|---|
java.nio.charset |
定义了字符集,解码器和编码器,字节和Unicode字符之间的转换。
|
Modifier and Type | Field and Description |
---|---|
static CodingErrorAction |
CodingErrorAction.IGNORE
通过丢弃错误输入和恢复编码操作来处理一个编码错误的动作。
|
static CodingErrorAction |
CodingErrorAction.REPLACE
行动表明编码错误是通过将错误的输入处理,将编码器的替换值到输出缓冲区,并恢复编码操作。
|
static CodingErrorAction |
CodingErrorAction.REPORT
行动表明编码错误将被报告,要么返回一个
CoderResult 对象或扔一个
CharacterCodingException ,以适当的方法进行编码的过程。
|
Modifier and Type | Method and Description |
---|---|
CodingErrorAction |
CharsetEncoder.malformedInputAction()
返回错误的输入错误该编码器的当前动作。
|
CodingErrorAction |
CharsetDecoder.malformedInputAction()
返回错误的输入错误该解码器的动作。
|
CodingErrorAction |
CharsetEncoder.unmappableCharacterAction()
返回无法映射的字符错误该编码器的当前动作。
|
CodingErrorAction |
CharsetDecoder.unmappableCharacterAction()
返回无法映射的字符错误这个解码器的动作电流。
|
Modifier and Type | Method and Description |
---|---|
protected void |
CharsetEncoder.implOnMalformedInput(CodingErrorAction newAction)
报道改变该编码器的格式不正确的输入动作。
|
protected void |
CharsetDecoder.implOnMalformedInput(CodingErrorAction newAction)
报道改变这个解码器的格式不正确的输入动作。
|
protected void |
CharsetEncoder.implOnUnmappableCharacter(CodingErrorAction newAction)
报道改变这个编码器无法映射的字符行动。
|
protected void |
CharsetDecoder.implOnUnmappableCharacter(CodingErrorAction newAction)
报道改变这个解码器无法映射的字符行动。
|
CharsetEncoder |
CharsetEncoder.onMalformedInput(CodingErrorAction newAction)
该编码器的行动改变畸形的输入错误。
|
CharsetDecoder |
CharsetDecoder.onMalformedInput(CodingErrorAction newAction)
改变这个解码器的行动为畸形的输入错误。
|
CharsetEncoder |
CharsetEncoder.onUnmappableCharacter(CodingErrorAction newAction)
改变这种编码器的行动无法映射的字符错误。
|
CharsetDecoder |
CharsetDecoder.onUnmappableCharacter(CodingErrorAction newAction)
改变这个解码器的作用无法映射的字符错误。
|
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.