org.jclouds.io
Interface Payload

All Superinterfaces:
Closeable, com.google.common.io.InputSupplier<InputStream>
All Known Implementing Classes:
BaseCipherPayload, BasePayload, ByteArrayPayload, ByteSourcePayload, DelegatingPayload, FilePayload, InputStreamPayload, MultipartForm, Part, PhantomPayload, RSADecryptingPayload, RSAEncryptingPayload, StringPayload, UrlEncodedFormPayload

public interface Payload
extends com.google.common.io.InputSupplier<InputStream>, Closeable


Method Summary
 MutableContentMetadata getContentMetadata()
           
 InputStream getInput()
          Deprecated. see openStream
 Object getRawContent()
          Payload in its original form.
 boolean isRepeatable()
          Tells if the payload is capable of producing its data more than once.
 InputStream openStream()
          Creates a new InputStream object of the payload.
 void release()
          release resources used by this entity.
 void setContentMetadata(MutableContentMetadata in)
           
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

openStream

InputStream openStream()
                       throws IOException
Creates a new InputStream object of the payload.

Throws:
IOException

getInput

@Deprecated
InputStream getInput()
Deprecated. see openStream

Creates a new InputStream object of the payload.

Specified by:
getInput in interface com.google.common.io.InputSupplier<InputStream>

getRawContent

Object getRawContent()
Payload in its original form.


isRepeatable

boolean isRepeatable()
Tells if the payload is capable of producing its data more than once.


release

void release()
release resources used by this entity. This should be called when data is discarded.


getContentMetadata

MutableContentMetadata getContentMetadata()

setContentMetadata

void setContentMetadata(MutableContentMetadata in)


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