com.sun.xml.bind
Class StringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

Constructor Summary
StringInputStream(java.lang.String _str)
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] buf)
           
 int read(byte[] buf, int offset, int len)
           
 
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
 

Constructor Detail

StringInputStream

public StringInputStream(java.lang.String _str)
Method Detail

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