java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.miaixz.bus.core.io.stream.LineInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<byte[]>
行读取器,类似于BufferedInputStream,支持多行转义,规则如下:
- 支持'\n'和'\r\n'两种换行符,不支持'\r'换行符
- 如果想读取转义符,必须定义为'\\'
- 多行转义后的换行符和空格都会被忽略
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator