public abstract class BaseResource extends java.lang.Object implements Resource
getContent method returns a OutputStream
and the standard setContent expects an InputStream.
The stream types should be better clarified| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
content |
protected java.lang.String |
id |
protected Collection |
parent |
| Constructor and Description |
|---|
BaseResource(Collection parent,
java.lang.String id)
Create a new BinaryResource without any content.
|
BaseResource(Collection parent,
java.lang.String id,
java.lang.String content)
Create a fully initialized BinaryResource
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, getResourceType, setContentprotected Collection parent
protected java.lang.String id
protected java.lang.String content
public BaseResource(Collection parent, java.lang.String id)
public BaseResource(Collection parent, java.lang.String id, java.lang.String content)
public Collection getParentCollection() throws XMLDBException
Collection instance that this resource is
associated with.getParentCollection in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public java.lang.String getId()
throws XMLDBException
getId in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.