org.jopendocument.util
Class StringInputStream

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

public class StringInputStream
extends ByteArrayInputStream

Permet de créer un InputStream depuis une String.

Author:
Sylvain CUAZ le 30 nov. 2004

Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
StringInputStream(String s)
           
StringInputStream(String s, String charset)
           
 
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(String s)

StringInputStream

public StringInputStream(String s,
                         String charset)
                  throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException


Copyright © 2010 jOpenDocument All Rights Reserved.