public interface AtomContext
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createTempOutputStream()
Returns an OutputStream which can be used for writing intermediate data in a "safe" manner (i.e.
|
AtomConfig |
getConfig()
Returns the current Atom's configuration.
|
InputStream |
tempOutputStreamToInputStream(OutputStream tempOutputStream)
Converts the OutputStream to an InputStream for reading any temporary data written.
|
Payload |
tempOutputStreamToPayload(OutputStream tempOutputStream)
Converts the OutputStream to an Payload for passing any temporary data written to an
OperationResponse
method. |
AtomConfig getConfig()
OutputStream createTempOutputStream() throws IOException
tempOutputStreamToInputStream(java.io.OutputStream) or tempOutputStreamToPayload(java.io.OutputStream) methods on the returned OutputStream
before closing. The returned OutputStream must be closed after use.IOExceptionInputStream tempOutputStreamToInputStream(OutputStream tempOutputStream) throws IOException
tempOutputStreamToPayload(java.io.OutputStream) method for passing the data to an OperationResponse
method.tempOutputStream - OutputStream created from a call to createTempOutputStream()IOExceptionPayload tempOutputStreamToPayload(OutputStream tempOutputStream) throws IOException
OperationResponse
method. This method must be called before the temporary OutputStream is closed.tempOutputStream - OutputStream created from a call to createTempOutputStream()IOException