public class LineReader extends ReaderWrapper implements Iterable<String>
例子:
a=1\ 2读出后就是
a=12
raw
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, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public LineReader(InputStream in, Charset charset)
in
- InputStream
charset
- 编码public String readLine() throws IOException
IOException
- IO异常Copyright © 2025. All rights reserved.