java.lang.Object | +--java.io.InputStream | +--java.io.StringBufferInputStream
StringReader class.
This class allows an application to create an input stream in which the bytes read are supplied by the contents of a string. Applications can also read bytes from a byte array by using a
ByteArrayInputStream.
Only the low eight bits of each character in the string are used by this class.
ByteArrayInputStream,
StringReader
| Field Summary | |
protected String |
buffer
copy-> buffer
|
protected int |
count
copy-> count
|
protected int |
pos
copy-> pos
|
| Constructor Summary | |
StringBufferInputStream
copy-> new StringBufferInputStream( )copy-> <StringBufferInputStream var> = new StringBufferInputStream(<String s>);
|
|
| Method Summary | |
int |
available()
copy-> .available()copy-> <int var>=<StringBufferInputStream>.available();
|
int |
read()
copy-> .read()copy-> <int var>=<StringBufferInputStream>.read();
|
int |
read(byte[] b,
int off,
int len)
copy-> .read(, , )copy-> <int var>=<StringBufferInputStream>.read(<byte[] b>, <int off>, <int len>);
|
void |
reset()
copy-> .reset()copy-> <StringBufferInputStream>.reset();
|
long |
skip(long n)
copy-> .skip( )copy-> <long var>=<StringBufferInputStream>.skip(<long n>);
|
| Methods inherited from class java.io.InputStream |
close, mark, markSupported, read |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |