java.lang.Object
java.io.Reader
org.miaixz.bus.core.io.CharSequenceReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
快速字符串读取,相比jdk的StringReader非线程安全,速度更快。
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
CharSequenceReader
构造- Parameters:
text-CharSequencestartInclude- 开始位置(包含)endExclude- 结束位置(不包含)
-
-
Method Details
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classReader
-
mark
public void mark(int readAheadLimit) -
reset
public void reset() -
read
public int read() -
read
public int read(char[] array, int offset, int length) -
skip
public long skip(long n) -
ready
public boolean ready() -
close
public void close() -
toString
-