org.eclipse.xtext.util
Class StringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by org.eclipse.xtext.util.StringInputStream
All Implemented Interfaces:
java.io.Closeable

public class StringInputStream
extends java.io.ByteArrayInputStream

Author:
Dennis Hübner - Initial contribution and API, Jan Koehnlein

Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
StringInputStream(java.lang.String string)
           
StringInputStream(java.lang.String content, java.lang.String encoding)
           
 
Method Summary
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
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 string)

StringInputStream

public StringInputStream(java.lang.String content,
                         java.lang.String encoding)
                  throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException