public interface Readable
CharBuffer
提供给读取方法的呼叫者 。
Modifier and Type | Method and Description |
---|---|
int |
read(CharBuffer cb)
尝试将字符读入指定的字符缓冲区。
|
int read(CharBuffer cb) throws IOException
cb
- 读取字符的缓冲区
char
添加到缓冲器值,或者-1,如果字符的这个源是在其端部
IOException
- 如果发生I / O错误
NullPointerException
- 如果cb为空
ReadOnlyBufferException
- 如果cb是只读缓冲区
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.