com.amazonaws.util
Class StringInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.amazonaws.util.StringInputStream
- All Implemented Interfaces:
- Closeable
public class StringInputStream
- extends ByteArrayInputStream
Simple wrapper for ByteArrayInputStream that will automatically encode the
string as UTF-8 data, and still allows access to the original string.
Method Summary |
String |
getString()
Returns the original string specified when this input stream was
constructed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringInputStream
public StringInputStream(String s)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getString
public String getString()
- Returns the original string specified when this input stream was
constructed.
- Returns:
- The original string specified when this input stream was
constructed.
Copyright © 2016. All rights reserved.