Package scorex.io
Class StringReader
- java.lang.Object
-
- scorex.io.Reader
-
- scorex.io.StringReader
-
public class StringReader extends Reader
A character stream whose source is a string.
-
-
Constructor Summary
Constructors Constructor Description StringReader(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cbuf, int off, int len)
boolean
ready()
void
reset()
long
skip(long ns)
-
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Specified by:
read
in classReader
- Throws:
IOException
-
skip
public long skip(long ns) throws IOException
- Overrides:
skip
in classReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classReader
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classReader
-
mark
public void mark(int readAheadLimit) throws IOException
- Overrides:
mark
in classReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classReader
- Throws:
IOException
-
-