org.chenillekit.core.streams
Class StringInputStream
java.lang.Object
java.io.InputStream
org.chenillekit.core.streams.ReaderInputStream
org.chenillekit.core.streams.StringInputStream
- All Implemented Interfaces:
- Closeable
public class StringInputStream
- extends ReaderInputStream
Wraps a String as an InputStream.
stolen from org.apache.tools.ant.filters.StringInputStream
- Version:
- $Id: StringInputStream.java 594 2009-12-05 15:17:26Z mlusetti $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringInputStream
public StringInputStream(String source)
- Composes a stream from a String
- Parameters:
source - The string to read from. Must not be null.
StringInputStream
public StringInputStream(String source,
String encoding)
- Composes a stream from a String with the specified encoding
- Parameters:
source - The string to read from. Must not be null.encoding - The encoding scheme. Also must not be null.
Copyright © 2008-2010 ChenilleKit. All Rights Reserved.