Resource, BinaryResourceBinaryResourceImplpublic abstract class SimpleBinaryResource extends BaseResource implements BinaryResource
RESOURCE_TYPE| Constructor | 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 | 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, getParentCollectionequals, 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.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>