软件包 | 描述 |
---|---|
java.io |
通过数据流、序列化和文件系统提供系统的输入和输出。
|
java.nio.channels |
定义了渠道,它代表的是能够执行I/O操作的实体连接,如文件和套接字;定义选择器,多路复用,非阻塞I/O操作。
|
java.nio.charset |
定义了字符集,解码器和编码器,字节和Unicode字符之间的转换。
|
Constructor and Description |
---|
InputStreamReader(InputStream in, CharsetDecoder dec)
创建一个inputstreamreader使用给定的字符集解码。
|
Modifier and Type | Method and Description |
---|---|
static Reader |
Channels.newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap)
构建读者解码字节从给定的信道使用给定的解码器。
|
Modifier and Type | Method and Description |
---|---|
abstract CharsetDecoder |
Charset.newDecoder()
构建这个字符集新的解码器。
|
CharsetDecoder |
CharsetDecoder.onMalformedInput(CodingErrorAction newAction)
改变这个解码器的行动为畸形的输入错误。
|
CharsetDecoder |
CharsetDecoder.onUnmappableCharacter(CodingErrorAction newAction)
改变这个解码器的作用无法映射的字符错误。
|
CharsetDecoder |
CharsetDecoder.replaceWith(String newReplacement)
更改此解码器的替换值。
|
CharsetDecoder |
CharsetDecoder.reset()
重置该解码器,清除任何内部状态。
|
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.