Xindice API
version 1.2m1

org.apache.xindice.client.xmldb.resources
Class BinaryResourceImpl

java.lang.Object
  extended byorg.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) $

Field Summary
 
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
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)

Xindice API
version 1.2m1

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