Class FilePayload
- java.lang.Object
-
- org.openstack4j.model.common.payloads.FilePayload
-
-
Constructor Summary
Constructors Constructor Description FilePayload(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseQuietly()Closes the stream and releases state.FilegetRaw()Gets the raw underlying object for the Payload.InputStreamopen()Opens and returns the input stream.
-
-
-
Constructor Detail
-
FilePayload
public FilePayload(File file)
-
-
Method Detail
-
open
public InputStream open()
Opens and returns the input stream.
-
getRaw
public File getRaw()
Gets the raw underlying object for the Payload.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
closeQuietly
public void closeQuietly()
Closes the stream and releases state.- Specified by:
closeQuietlyin interfacePayload<File>
-
-