public abstract class SimpleBinaryResource extends BaseResource implements BinaryResource
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content |
id, parentRESOURCE_TYPE| Constructor and Description |
|---|
SimpleBinaryResource(Collection parent,
java.lang.String id)
Create a new BinaryResource without any content.
|
SimpleBinaryResource(Collection parent,
java.lang.String id,
byte[] content)
Create a fully initialized BinaryResource
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent()
Retrieves the content from the resource.
|
java.lang.String |
getResourceType()
Returns the resource type for this Resource.
|
void |
setContent(java.lang.Object value)
Sets the content for this resource.
|
getId, getParentCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getParentCollectionpublic SimpleBinaryResource(Collection parent, java.lang.String id)
public SimpleBinaryResource(Collection parent, java.lang.String id, byte[] content)
public java.lang.String getResourceType()
throws XMLDBException
getResourceType in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public java.lang.Object getContent()
throws XMLDBException
getContent in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.public void setContent(java.lang.Object value)
throws XMLDBException
setContent in interface Resourcevalue - the content value to set for the resource.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.