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| 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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, getResourceType, setContentpublic 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.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>