Package org.eclipse.epsilon.emc.plainxml
Class StringInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.epsilon.emc.plainxml.StringInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class StringInputStream extends InputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected int
available
protected int
charOffset
protected String
str
protected int
strOffset
-
Constructor Summary
Constructors Constructor Description StringInputStream(String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
strOffset
protected int strOffset
-
charOffset
protected int charOffset
-
available
protected int available
-
str
protected String str
-
-
Constructor Detail
-
StringInputStream
public StringInputStream(String s)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
-