Xindice API
version 1.1

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: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Fields inherited from interface org.xmldb.api.modules.BinaryResource
RESOURCE_TYPE
 
Constructor Summary
BinaryResourceImpl(String id, byte[] content)
           
BinaryResourceImpl(String id, org.xmldb.api.base.Collection collection, byte[] content)
           
 
Method Summary
 Object getContent()
           
 String getId()
           
 org.xmldb.api.base.Collection getParentCollection()
           
 String getResourceType()
           
 void setContent(Object content)
           
 void setId(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(String id,
                          byte[] content)

BinaryResourceImpl

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

getContent

public Object getContent()
                  throws org.xmldb.api.base.XMLDBException
Specified by:
getContent in interface org.xmldb.api.base.Resource
See Also:
Resource.getContent()

getId

public 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 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(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(String id)

Xindice API
version 1.1

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