public interface StreamObject extends java.lang.Comparable<StreamObject>
StreamHandlerIF
. The handler
creates StreamObjects to represent resources in the backend of its
implementation. StreamObjects are designed to provide access to one of the
resources.Modifier and Type | Method and Description |
---|---|
boolean |
exists()
The return value of this method indicated wether the object already exists
in the backend.
|
java.lang.String |
getIdentifier()
Returns an identifier for the resource which this object represents.
|
java.io.InputStream |
getInput()
Returns an input from the resource represented by this object.
|
java.util.Map<java.lang.String,?> |
getInputProperties()
Returns the properties of the object represented by inputstream of this
interface.
|
java.io.OutputStream |
getOutput(java.util.Map<java.lang.String,java.lang.Object> properties)
Returns an output from the resource represented by this object.
|
java.io.OutputStream getOutput(java.util.Map<java.lang.String,java.lang.Object> properties) throws java.io.IOException
properties
- the optional properties assigned with the object to be written
with this stream. Can be nulljava.io.IOException
java.io.InputStream getInput() throws java.io.IOException
java.io.IOException
java.lang.String getIdentifier()
java.util.Map<java.lang.String,?> getInputProperties() throws java.io.IOException
java.io.IOException
- thrown if the properties were requested before the actual input
stream is opened by callerboolean exists() throws java.io.IOException
java.io.IOException
- thrown if the status cannot be obtained