java.io.Closeable
, java.lang.AutoCloseable
public class StringInputStream extends ReaderInputStream
Constructor | Description |
---|---|
StringInputStream(java.lang.String source) |
Composes a stream from a String
|
StringInputStream(java.lang.String source,
java.lang.String encoding) |
Composes a stream from a String with the specified encoding
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
available, close, mark, markSupported, read, read, reset
public StringInputStream(java.lang.String source)
source
- The string to read from. Must not be null
.public StringInputStream(java.lang.String source, java.lang.String encoding)
source
- The string to read from. Must not be null
.encoding
- The encoding scheme. Also must not be null
.