public class LineReader extends ReaderWrapper implements Iterable<String>
例子:
a=1\ 2读出后就是
a=12raw| 构造器和说明 |
|---|
LineReader(InputStream in,
Charset charset)
构造
|
LineReader(Reader reader)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<String> |
iterator() |
String |
readLine()
读取一行
|
close, getRaw, mark, markSupported, read, read, read, read, ready, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LineReader(InputStream in, Charset charset)
in - InputStreamcharset - 编码public String readLine() throws IOException
IOException - IO异常Copyright © 2023. All rights reserved.