Class CharSequenceInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.io.input.CharSequenceInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

Implements an InputStream to read bytes from String, StringBuffer, StringBuilder or CharBuffer, encoded using the specified Charset. The Charset defaults to Charset.defaultCharset().

Note: Supports mark(int) and reset().

To build an instance, use CharSequenceInputStream.Builder.

Since:
2.2
See Also: