|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.StringBufferInputStream
StringReader
@Deprecated public class StringBufferInputStream
StringBufferInputStream is a class for to allow a String to be used as an InputStream.
| Field Summary | |
|---|---|
protected String |
buffer
Deprecated. The String containing the data to read. |
protected int |
count
Deprecated. The total number of characters inside the buffer. |
protected int |
pos
Deprecated. The current position within the String buffer. |
| Constructor Summary | |
|---|---|
StringBufferInputStream(String str)
Deprecated. Constructs a new StringBufferInputStream on the String str. |
|
| Method Summary | |
|---|---|
int |
available()
Deprecated. Returns an int representing then number of characters that are available to read. |
int |
read()
Deprecated. Reads a single byte from this InputStream and returns the result as an int. |
int |
read(byte[] b,
int offset,
int length)
Deprecated. Reads at most length bytes from this InputStream and
stores them in byte array b starting at
offset. |
void |
reset()
Deprecated. Reset this InputStream to position 0. |
long |
skip(long n)
Deprecated. Skips count number of characters in this InputStream. |
| 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 |
| Field Detail |
|---|
protected String buffer
protected int count
protected int pos
| Constructor Detail |
|---|
public StringBufferInputStream(String str)
str.
str - the String to read characters from.| Method Detail |
|---|
public int available()
available in class InputStreampublic int read()
read in class InputStream
public int read(byte[] b,
int offset,
int length)
length bytes from this InputStream and
stores them in byte array b starting at
offset. Answer the number of bytes actually read or -1 if
no bytes were read and end of stream was encountered.
read in class InputStreamb - the byte array in which to store the read bytes.offset - the offset in b to store the read bytes.length - the maximum number of bytes to store in b.
public void reset()
reset in class InputStreampublic long skip(long n)
count number of characters in this InputStream.
Subsequent read()'s will not return these characters
unless reset() is used.
skip in class InputStreamn - the number of characters to skip.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||