public class DelegatingPayload extends Object implements Payload
Constructor and Description |
---|
DelegatingPayload(Payload delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
MutableContentMetadata |
getContentMetadata() |
Payload |
getDelegate() |
InputStream |
getInput()
Creates a new InputStream object of the payload.
|
Object |
getRawContent()
Payload in its original form.
|
int |
hashCode() |
boolean |
isRepeatable()
Tells if the payload is capable of producing its data more than once.
|
void |
release()
release resources used by this entity.
|
void |
setContentMetadata(MutableContentMetadata in) |
void |
writeTo(OutputStream outstream)
Writes the payload content to the output stream.
|
public DelegatingPayload(Payload delegate)
public InputStream getInput()
getInput
in interface com.google.common.io.InputSupplier<InputStream>
getInput
in interface Payload
public Object getRawContent()
getRawContent
in interface Payload
public boolean isRepeatable()
isRepeatable
in interface Payload
public void writeTo(OutputStream outstream) throws IOException
writeTo
in interface WriteTo
IOException
public Payload getDelegate()
public void release()
Payload
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public MutableContentMetadata getContentMetadata()
getContentMetadata
in interface Payload
public void setContentMetadata(MutableContentMetadata in)
setContentMetadata
in interface Payload
Copyright © 2009-2012 jclouds. All Rights Reserved.