public interface StreamHandlerIF
FilenameHandlerExtIF
but instead of
File
objects, this interface is designed to handle streams. In order
to identify streams other than by the java instance, the creates streams are
encapsulated into a seperate StreamObject
. Each of those objects can
provide access to the streams of the resource it represents and the
identifier used to map streams to their objects in the backend and on client
side.Properties
object.Modifier and Type | Method and Description |
---|---|
void |
copyObject(StreamObject src,
StreamObject dst)
Copies the given src object to the given dst object.
|
void |
deleteObject(StreamObject sObj)
Deletes the resources in the backend represented by the given
StreamObject.
|
StreamObject |
getObjectForIdentifier(AoSession session,
java.lang.String identifier)
Returns a StreamObject for the given parameters.
|
StreamObject |
getObjectForInstance(AoSession session,
java.lang.String name,
java.lang.String subdir,
T_LONGLONG aid,
T_LONGLONG iid)
Returns an object that represents the resource in the backend of the
implementation.
|
void |
moveObject(StreamObject src,
StreamObject dst)
Moves the given StreamObject src to the location given in the dst object.
|
StreamObject getObjectForInstance(AoSession session, java.lang.String name, java.lang.String subdir, T_LONGLONG aid, T_LONGLONG iid) throws java.io.IOException
session
- an AoSessionname
- the name of the resourcesubdir
- a possible subdir where the resource should be locatedaid
- an optional ApplicationElement IDiid
- an optional InstanceElement IDjava.io.IOException
StreamObject getObjectForIdentifier(AoSession session, java.lang.String identifier) throws java.io.IOException
session
- an AoSessionidentifier
- a unique URL or other string-based identifier that the
implementation understandsjava.io.IOException
void deleteObject(StreamObject sObj) throws java.io.IOException
sObj
- the object describing the resourcejava.io.IOException
- thrown if the given object cannot be deleted in the backendvoid moveObject(StreamObject src, StreamObject dst) throws java.io.IOException
src
- dst
- java.io.IOException
- thrown if the implementation cannot handle the request with the
given arguments.void copyObject(StreamObject src, StreamObject dst) throws java.io.IOException
src
- dst
- java.io.IOException