Package org.jclouds.io.payloads
Class StringPayload
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Payload
This implementation converts the String to a byte array using UTF-8 encoding. If you wish to use
a different encoding, please use
ByteArrayPayload
.-
Field Summary
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new InputStream object of the payload.Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isRepeatable, isSensitive, release, setContentMetadata, setSensitive, toString
-
Constructor Details
-
StringPayload
-
-
Method Details
-
openStream
Creates a new InputStream object of the payload.
-