Class InputStreamPayload
- java.lang.Object
-
- org.openstack4j.model.common.payloads.InputStreamPayload
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Payload<InputStream>
public class InputStreamPayload extends Object implements Payload<InputStream>
Input Stream Payload- Author:
- Jeremy Unruh
-
-
Constructor Summary
Constructors Constructor Description InputStreamPayload(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseQuietly()Closes the stream and releases state.InputStreamgetRaw()Gets the raw underlying object for the Payload.InputStreamopen()Opens and returns the input stream.
-
-
-
Constructor Detail
-
InputStreamPayload
public InputStreamPayload(InputStream is)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
open
public InputStream open()
Opens and returns the input stream.- Specified by:
openin interfacePayload<InputStream>- Returns:
- the input stream
-
closeQuietly
public void closeQuietly()
Closes the stream and releases state.- Specified by:
closeQuietlyin interfacePayload<InputStream>
-
getRaw
public InputStream getRaw()
Gets the raw underlying object for the Payload.- Specified by:
getRawin interfacePayload<InputStream>- Returns:
- the raw object
-
-