public class LineReader extends ReaderWrapper implements Iterable<String>
例子:
a=1\ 2读出后就是
a=12raw| Constructor and Description |
|---|
LineReader(InputStream in,
Charset charset)
构造
|
LineReader(Reader reader)
构造
|
| Modifier and Type | Method and Description |
|---|---|
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 © 2025. All rights reserved.