public class LineInputStream extends FilterInputStream implements Iterable<byte[]>
例子:
a=1\ 2读出后就是
a=12in| Constructor and Description |
|---|
LineInputStream(InputStream in)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<byte[]> |
iterator() |
byte[] |
readLine()
读取一行
|
String |
readLine(Charset charset)
读取一行
|
available, close, mark, markSupported, read, read, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LineInputStream(InputStream in)
in - 输入流public String readLine(Charset charset) throws IORuntimeException
charset - 编码IORuntimeException - IO异常public byte[] readLine()
throws IORuntimeException
IORuntimeException - IO异常Copyright © 2025. All rights reserved.