com.sun.xml.bind
Class StringInputStream
java.lang.Object
java.io.InputStream
com.sun.xml.bind.StringInputStream
- All Implemented Interfaces:
- java.io.Closeable
public final class StringInputStream
- extends java.io.InputStream
Same as StringBufferInputStream
.
If we use the StringBufferInputStream class in the generated code,
it will cause warnings. That's why this class is re-implemented
- Since:
- 1.0
Methods inherited from class java.io.InputStream |
close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringInputStream
public StringInputStream(java.lang.String _str)
available
public int available()
- Overrides:
available
in class java.io.InputStream
read
public int read()
- Specified by:
read
in class java.io.InputStream
read
public int read(byte[] buf)
- Overrides:
read
in class java.io.InputStream
read
public int read(byte[] buf,
int offset,
int len)
- Overrides:
read
in class java.io.InputStream