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
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
StringPayload
public StringPayload(String content)
getInput
public InputStream getInput()
- Creates a new InputStream object of the payload.
Copyright © 2009-2012 jclouds. All Rights Reserved.