| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 CharsetDecoder 的软件包 | |
|---|---|
| java.io | 通过数据流、序列化和文件系统提供系统输入和输出。 | 
| java.nio.channels | 定义了各种通道,这些通道表示到能够执行 I/O 操作的实体(如文件和套接字)的连接;定义了用于多路复用的、非阻塞 I/O 操作的选择器。 | 
| java.nio.charset | 定义用来在字节和 Unicode 字符之间转换的 charset、解码器和编码器。 | 
| java.io 中 CharsetDecoder 的使用 | 
|---|
| 参数类型为 CharsetDecoder 的 java.io 中的构造方法 | |
|---|---|
| InputStreamReader(InputStream in,
                  CharsetDecoder dec)创建使用给定字符集解码器的 InputStreamReader。 | |
| java.nio.channels 中 CharsetDecoder 的使用 | 
|---|
| 参数类型为 CharsetDecoder 的 java.nio.channels 中的方法 | |
|---|---|
| static Reader | Channels.newReader(ReadableByteChannel ch,
          CharsetDecoder dec,
          int minBufferCap)构造一个 reader,它用给定的解码器对取自给定信道的字节进行解码。 | 
| java.nio.charset 中 CharsetDecoder 的使用 | 
|---|
| 返回 CharsetDecoder 的 java.nio.charset 中的方法 | |
|---|---|
| abstract  CharsetDecoder | Charset.newDecoder()为此 charset 构造新的解码器。 | 
|  CharsetDecoder | CharsetDecoder.onMalformedInput(CodingErrorAction newAction)更改此解码器对错误输入错误的操作。 | 
|  CharsetDecoder | CharsetDecoder.onUnmappableCharacter(CodingErrorAction newAction)更改此解码器对不可映射的字符错误的操作。 | 
|  CharsetDecoder | CharsetDecoder.replaceWith(String newReplacement)更改此解码器的替换值。 | 
|  CharsetDecoder | CharsetDecoder.reset()重置此解码器,清除所有内部状态。 | 
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。