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 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:
- $Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
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(String id,
byte[] content)
BinaryResourceImpl
public BinaryResourceImpl(String id,
org.xmldb.api.base.Collection collection,
byte[] content)
getContent
public Object getContent()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getContent
in interface org.xmldb.api.base.Resource
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Resource.getContent()
getId
public String getId()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getId
in interface org.xmldb.api.base.Resource
- Throws:
org.xmldb.api.base.XMLDBException
- 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
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Resource.getParentCollection()
getResourceType
public String getResourceType()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResourceType
in interface org.xmldb.api.base.Resource
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Resource.getResourceType()
setContent
public void setContent(Object content)
throws org.xmldb.api.base.XMLDBException
- Specified by:
setContent
in interface org.xmldb.api.base.Resource
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Resource.setContent(Object)
setId
public void setId(String id)
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.