Package org.jclouds.io.payloads
Class FilePayload
- java.lang.Object
-
- org.jclouds.io.payloads.BasePayload<File>
-
- org.jclouds.io.payloads.FilePayload
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Payload
public class FilePayload extends BasePayload<File>
-
-
Field Summary
-
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
-
-
Constructor Summary
Constructors Constructor Description FilePayload(File content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
openStream()
Creates a new InputStream object of the payload.-
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isRepeatable, isSensitive, release, setContentMetadata, setSensitive, toString
-
-
-
-
Constructor Detail
-
FilePayload
public FilePayload(File content)
-
-
Method Detail
-
openStream
public InputStream openStream() throws IOException
Creates a new InputStream object of the payload.- Throws:
IOException
-
-