Class StringInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.amazonaws.util.StringInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Simple wrapper for ByteArrayInputStream that will automatically encode the
string as UTF-8 data, and still allows access to the original string.
-
Field Summary
Fields inherited from class ByteArrayInputStream
buf, count, mark, pos -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferToMethods inherited from class InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
StringInputStream
- Throws:
UnsupportedEncodingException
-
-
Method Details
-
getString
Returns the original string specified when this input stream was constructed.- Returns:
- The original string specified when this input stream was constructed.
-