public interface Payload
Modifier and Type | Interface and Description |
---|---|
static class |
Payload.StringBufferOutputStream
A default implementation of an output stream, as a string buffer combined with an
output stream.
|
static class |
Payload.StringPayload
A default implementation of a payload.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all open streams, both input and output.
|
String |
getContent()
Returns the content as a string.
|
InputStream |
getInputStream()
Returns a reference to the
InputStream associated with this payload. |
OutputStream |
getOutputStream()
Returns a reference to the
OutputStream associated with this payload. |
void |
setContent(String content)
Sets the content of the payload.
|
String getContent()
void setContent(String content)
content
- the payload contentInputStream getInputStream()
InputStream
associated with this payload.
This input stream can be read from. Once data has been read (consumed),
it can not be read again.OutputStream getOutputStream()
OutputStream
associated with this payload.
This can be used to write data to the payload. It is the responsibility of the
caller to call close()
or flush()
on the output stream.void close() throws IOException
IOException
- if there is an error while closing the streamsCopyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.