org.xmldb.api.sdk.modules
Class BaseResource
java.lang.Object
org.xmldb.api.sdk.modules.BaseResource
- Resource
public abstract class BaseResource
extends java.lang.Object
Resource for encapsulation of binary data that is stored in the data base.
Support for BinaryResources is optional.
The standard
getContent
method returns a
OutputStream
and the standard setContent expects an
InputStream
.
The stream types should be better clarified
String | getId() - Returns the unique id for this Resource or null if the resource is
anonymous.
|
Collection | getParentCollection() - Returns the
Collection instance that this resource is
associated with.
|
content
protected String content
BaseResource
public BaseResource(Collection parent,
String id)
Create a new BinaryResource without any content.
BaseResource
public BaseResource(Collection parent,
String id,
String content)
Create a fully initialized BinaryResource
getId
public String getId()
throws XMLDBException
Returns the unique id for this Resource or null if the resource is
anonymous.
- getId in interface Resource
- the id for the Resource or null if no id exists.