@Deprecated public class StreamingPayload extends Object implements Payload
| Modifier and Type | Field and Description |
|---|---|
protected MutableContentMetadata |
contentMetadata
Deprecated.
|
protected WriteTo |
writeTo
Deprecated.
|
protected boolean |
written
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
|
StreamingPayload(WriteTo writeTo)
Deprecated.
|
protected |
StreamingPayload(WriteTo writeTo,
MutableContentMetadata contentMetadata)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Delegates to release()
|
boolean |
equals(Object obj)
Deprecated.
|
MutableContentMetadata |
getContentMetadata()
Deprecated.
|
InputStream |
getInput()
Deprecated.
Creates a new InputStream object of the payload.
|
Object |
getRawContent()
Deprecated.
Payload in its original form.
|
int |
hashCode()
Deprecated.
|
boolean |
isRepeatable()
Deprecated.
By default we are not repeatable.
|
InputStream |
openStream()
Deprecated.
Creates a new InputStream object of the payload.
|
void |
release()
Deprecated.
By default there are no resources to release.
|
void |
setContentMetadata(MutableContentMetadata in)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeTo(OutputStream outstream)
Deprecated.
Writes the payload content to the output stream.
|
protected transient volatile boolean written
protected final WriteTo writeTo
protected MutableContentMetadata contentMetadata
public StreamingPayload(WriteTo writeTo)
protected StreamingPayload(WriteTo writeTo, MutableContentMetadata contentMetadata)
public Object getRawContent()
PayloadgetRawContent in interface PayloadUnsupportedOperationException - this payload is for streaming writes onlypublic InputStream openStream()
PayloadopenStream in interface PayloadUnsupportedOperationException - this payload is for streaming writes onlypublic InputStream getInput()
PayloadgetInput in interface com.google.common.io.InputSupplier<InputStream>getInput in interface PayloadUnsupportedOperationException - this payload is for streaming writes onlypublic void writeTo(OutputStream outstream) throws IOException
writeTo in interface WriteToIOExceptionpublic boolean isRepeatable()
isRepeatable in interface Payloadpublic void release()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic MutableContentMetadata getContentMetadata()
getContentMetadata in interface Payloadpublic void setContentMetadata(MutableContentMetadata in)
setContentMetadata in interface PayloadCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.