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.