org.xmldb.api.sdk.modules
public abstract class SimpleBinaryResource extends BaseResource implements BinaryResource
Modifier and Type | Field and Description |
---|---|
protected byte[] |
content |
id, parent
RESOURCE_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, getParentCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getParentCollection
public 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 Resource
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.Object getContent() throws XMLDBException
getContent
in interface Resource
XMLDBException
- 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 Resource
value
- the content value to set for the resource.XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.