|
XML:DB API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xmldb.api.sdk.modules.BaseResource
org.xmldb.api.sdk.modules.SimpleBinaryResource
public abstract class SimpleBinaryResource
Resource for encapsulation of binary data that is stored in the data base. Support for BinaryResources is optional.
| Field Summary |
|---|
| Fields inherited from interface org.xmldb.api.modules.BinaryResource |
|---|
RESOURCE_TYPE |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.xmldb.api.sdk.modules.BaseResource |
|---|
getId, getParentCollection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xmldb.api.base.Resource |
|---|
getId, getParentCollection |
| Constructor Detail |
|---|
public SimpleBinaryResource(Collection parent,
java.lang.String id)
public SimpleBinaryResource(Collection parent,
java.lang.String id,
byte[] content)
| Method Detail |
|---|
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.
|
XML:DB API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||