org.exist.xmldb
Class RemoteBinaryResource

java.lang.Object
  extended by org.exist.xmldb.AbstractRemoteResource
      extended by org.exist.xmldb.RemoteBinaryResource
All Implemented Interfaces:
EXistResource, ExtendedResource, Resource, BinaryResource

public class RemoteBinaryResource
extends AbstractRemoteResource
implements BinaryResource

Author:
wolf

Field Summary
 
Fields inherited from interface org.xmldb.api.modules.BinaryResource
RESOURCE_TYPE
 
Constructor Summary
RemoteBinaryResource(RemoteCollection parent, XmldbURI documentName)
           
 
Method Summary
 void getContentIntoAStream(OutputStream os)
          It saves the resource to the local stream given as input parameter.
 DocumentType getDocType()
           
 Object getExtendedContent()
          It returns an object representing the content, in the representation which needs less memory.
 String getId()
           
 String getResourceType()
           
 InputStream getStreamContent()
          It returns an stream to the content, whichever it is its origin
 long getStreamLength()
          It returns the length of the content, whichever it is its origin
 void setContent(Object obj)
           
 void setDocType(DocumentType doctype)
           
 void setLexicalHandler(LexicalHandler handler)
           
 
Methods inherited from class org.exist.xmldb.AbstractRemoteResource
freeResources, getContent, getContentIntoAFile, getContentLength, getCreationTime, getExtendedContentLength, getLastModificationTime, getMimeType, getParentCollection, getPermissions, setContentLength, setContentLength, setMimeType, setPermissions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Resource
getContent, getParentCollection
 

Constructor Detail

RemoteBinaryResource

public RemoteBinaryResource(RemoteCollection parent,
                            XmldbURI documentName)
                     throws XMLDBException
Throws:
XMLDBException
Method Detail

getId

public String getId()
             throws XMLDBException
Specified by:
getId in interface Resource
Throws:
XMLDBException

getResourceType

public String getResourceType()
                       throws XMLDBException
Specified by:
getResourceType in interface Resource
Throws:
XMLDBException

getExtendedContent

public Object getExtendedContent()
                          throws XMLDBException
Description copied from interface: ExtendedResource
It returns an object representing the content, in the representation which needs less memory.

Specified by:
getExtendedContent in interface ExtendedResource
Throws:
XMLDBException

getStreamContent

public InputStream getStreamContent()
                             throws XMLDBException
Description copied from interface: ExtendedResource
It returns an stream to the content, whichever it is its origin

Specified by:
getStreamContent in interface ExtendedResource
Throws:
XMLDBException

getContentIntoAStream

public void getContentIntoAStream(OutputStream os)
                           throws XMLDBException
Description copied from interface: ExtendedResource
It saves the resource to the local stream given as input parameter. Do NOT confuse with set content.

Specified by:
getContentIntoAStream in interface ExtendedResource
Throws:
XMLDBException

getStreamLength

public long getStreamLength()
                     throws XMLDBException
Description copied from interface: ExtendedResource
It returns the length of the content, whichever it is its origin

Specified by:
getStreamLength in interface ExtendedResource
Throws:
XMLDBException

setContent

public void setContent(Object obj)
                throws XMLDBException
Specified by:
setContent in interface Resource
Throws:
XMLDBException

setLexicalHandler

public void setLexicalHandler(LexicalHandler handler)
Specified by:
setLexicalHandler in interface EXistResource

getDocType

public DocumentType getDocType()
                        throws XMLDBException
Specified by:
getDocType in interface EXistResource
Throws:
XMLDBException

setDocType

public void setDocType(DocumentType doctype)
                throws XMLDBException
Specified by:
setDocType in interface EXistResource
Throws:
XMLDBException


Copyright (C) The eXist-db Project. All rights reserved.