public class ByteSourcePayload extends BasePayload<com.google.common.io.ByteSource>
content, contentMetadata, written
Constructor and Description |
---|
ByteSourcePayload(com.google.common.io.ByteSource content) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRepeatable()
By default we are repeatable.
|
InputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
release()
if we created the stream, then it is already consumed on close.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toString
public ByteSourcePayload(com.google.common.io.ByteSource content)
public InputStream openStream() throws IOException
Payload
IOException
public boolean isRepeatable()
BasePayload
isRepeatable
in interface Payload
isRepeatable
in class BasePayload<com.google.common.io.ByteSource>
public void release()
release
in interface Payload
release
in class BasePayload<com.google.common.io.ByteSource>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.