Xindice API
version 1.1b3

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
 
Constructor Summary
BinaryResourceImpl(java.lang.String id, byte[] content)
           
BinaryResourceImpl(java.lang.String id, org.xmldb.api.base.Collection collection, byte[] content)
           
 
Method Summary
 java.lang.Object getContent()
           
 java.lang.String getId()
           
 org.xmldb.api.base.Collection getParentCollection()
           
 java.lang.String getResourceType()
           
 void setContent(java.lang.Object content)
           
 void setId(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryResourceImpl

public BinaryResourceImpl(java.lang.String id,
                          byte[] content)

BinaryResourceImpl

public BinaryResourceImpl(java.lang.String id,
                          org.xmldb.api.base.Collection collection,
                          byte[] content)
Method Detail

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)

Xindice API
version 1.1b3

Copyright (c) 1999-2003 The Apache Software Foundation. All Rights Reserved.