org.apache.xindice.client.xmldb.resources
Class BinaryResourceImpl
java.lang.Object
|
+--org.apache.xindice.client.xmldb.resources.BinaryResourceImpl
- All Implemented Interfaces:
- org.xmldb.api.modules.BinaryResource, org.xmldb.api.base.Resource
- public class BinaryResourceImpl
- extends java.lang.Object
- implements org.xmldb.api.modules.BinaryResource
BinaryResourceImpl provides an implementation to handle XML:DB binary
resource.
As per XML:DB spec, binary resource supports only byte[] data.
- Version:
- CVS $Revision: 1.5 $, $Date: 2003/12/24 02:52:44 $
Fields inherited from interface org.xmldb.api.modules.BinaryResource |
RESOURCE_TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryResourceImpl
public BinaryResourceImpl(java.lang.String id,
byte[] content)
BinaryResourceImpl
public BinaryResourceImpl(java.lang.String id,
org.xmldb.api.base.Collection collection,
byte[] content)
getContent
public java.lang.Object getContent()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getContent
in interface org.xmldb.api.base.Resource
- See Also:
Resource.getContent()
getId
public java.lang.String getId()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getId
in interface org.xmldb.api.base.Resource
- See Also:
Resource.getId()
getParentCollection
public org.xmldb.api.base.Collection getParentCollection()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getParentCollection
in interface org.xmldb.api.base.Resource
- See Also:
Resource.getParentCollection()
getResourceType
public java.lang.String getResourceType()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResourceType
in interface org.xmldb.api.base.Resource
- See Also:
Resource.getResourceType()
setContent
public void setContent(java.lang.Object content)
throws org.xmldb.api.base.XMLDBException
- Specified by:
setContent
in interface org.xmldb.api.base.Resource
- See Also:
Resource.setContent(Object)
setId
public void setId(java.lang.String id)
Copyright (c) 1999-2003 The Apache Software Foundation. All Rights Reserved.