org.jclouds.io.payloads
Class StringPayload
java.lang.Object
org.jclouds.io.payloads.BasePayload<String>
org.jclouds.io.payloads.StringPayload
- All Implemented Interfaces:
- com.google.common.io.InputSupplier<InputStream>, Closeable, Payload, WriteTo
Deprecated. see ByteSourcePayload
@Deprecated
public class StringPayload
- extends BasePayload<String>
This implementation converts the String to a byte array using UTF-8 encoding. If you wish to use
a different encoding, please use ByteArrayPayload.
- Author:
- Adrian Cole
| Methods inherited from class org.jclouds.io.payloads.BasePayload |
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isRepeatable, release, setContentMetadata, toString, writeTo |
StringPayload
public StringPayload(String content)
- Deprecated.
openStream
public InputStream openStream()
- Deprecated.
- Creates a new InputStream object of the payload.
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.