public class StringInputStream
extends java.io.InputStream
InputStream which reads through a given String.| Constructor and Description |
|---|
StringInputStream(java.lang.String s)
Here, the first read character will be the length of the stream.
|
StringInputStream(java.lang.String s,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
public StringInputStream(java.lang.String s,
int offset)
offset - -1=print length and then start string;0=start from start;n=leave out first n characterspublic StringInputStream(java.lang.String s)
StringInputStream(String, int) with 0 as the second parameter.