public final class CharSequenceReader
extends java.io.Reader
Reader
getting its data from a CharSequence
. This light-weight implementation
is intended for single-thread use, doesn't have any synchronization, and does not throw IOException
.Constructor and Description |
---|
CharSequenceReader(java.lang.CharSequence seq) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
int |
read(java.nio.CharBuffer target) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
public CharSequenceReader(@NonNull java.lang.CharSequence seq)
public int read(@NonNull java.nio.CharBuffer target)
read
in interface java.lang.Readable
read
in class java.io.Reader
public int read()
read
in class java.io.Reader
public int read(@NonNull char[] cbuf, int off, int len)
read
in class java.io.Reader
public long skip(long n)
skip
in class java.io.Reader
public boolean ready()
ready
in class java.io.Reader
public boolean markSupported()
markSupported
in class java.io.Reader
public void mark(int readAheadLimit)
mark
in class java.io.Reader
public void reset()
reset
in class java.io.Reader
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader