org.jclouds.io.payloads
Class StringPayload

java.lang.Object
  extended by org.jclouds.io.payloads.BasePayload<String>
      extended by org.jclouds.io.payloads.StringPayload
All Implemented Interfaces:
com.google.common.io.InputSupplier<InputStream>, Closeable, Payload

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.


Field Summary
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
Constructor Summary
StringPayload(String content)
          Deprecated.  
 
Method Summary
 InputStream openStream()
          Deprecated. Creates a new InputStream object of the payload.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isRepeatable, release, setContentMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringPayload

public StringPayload(String content)
Deprecated. 
Method Detail

openStream

public InputStream openStream()
Deprecated. 
Creates a new InputStream object of the payload.



Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.