Package org.apache.commons.lang3.text
Class StrBuilder.StrBuilderReader
java.lang.Object
java.io.Reader
org.apache.commons.lang3.text.StrBuilder.StrBuilderReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
- Enclosing class:
- StrBuilder
Inner class to allow StrBuilder to operate as a reader.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The last mark position.private int
The current stream position. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Field Details
-
pos
private int posThe current stream position. -
mark
private int markThe last mark position.
-
-
Constructor Details
-
StrBuilderReader
StrBuilderReader()Default constructor.
-
-
Method Details
-
close
public void close() -
read
public int read() -
read
public int read(char[] b, int off, int len) -
skip
public long skip(long n) -
ready
public boolean ready() -
markSupported
public boolean markSupported()- Overrides:
markSupported
in classReader
-
mark
public void mark(int readAheadLimit) -
reset
public void reset()
-