|
XML:DB API SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmldb.api.sdk.modules.BaseResource
Resource for encapsulation of binary data that is stored in the data base. Support for BinaryResources is optional.
The standardgetContent method returns a OutputStream
and the standard setContent expects an InputStream.
The stream types should be better clarified
| Constructor Summary | |
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 |
|
| Method Summary | |
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. |
| 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 |
getContent, getResourceType, setContent |
| Constructor Detail |
public BaseResource(Collection parent,
java.lang.String id)
public BaseResource(Collection parent,
java.lang.String id,
java.lang.String content)
| Method Detail |
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.
|
XML:DB API SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||