public class InputStreamPayload extends Object implements Payload<InputStream>
| Constructor and Description |
|---|
InputStreamPayload(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeQuietly()
Closes the stream and releases state.
|
InputStream |
getRaw()
Gets the raw underlying object for the Payload.
|
InputStream |
open()
Opens and returns the input stream.
|
public InputStreamPayload(InputStream is)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic InputStream open()
open in interface Payload<InputStream>public void closeQuietly()
closeQuietly in interface Payload<InputStream>public InputStream getRaw()
getRaw in interface Payload<InputStream>Copyright © 2017. All rights reserved.