org.exist.xmldb
Class LocalBinaryResource

java.lang.Object
  extended byorg.exist.xmldb.AbstractEXistResource
      extended byorg.exist.xmldb.LocalBinaryResource
All Implemented Interfaces:
EXistResource

public class LocalBinaryResource
extends AbstractEXistResource

Author:
wolf

Field Summary
protected  java.util.Date datecreated
           
protected  java.util.Date datemodified
           
protected  byte[] rawData
           
 
Fields inherited from class org.exist.xmldb.AbstractEXistResource
docId, isNewResource, mimeType, parent, pool, user
 
Constructor Summary
LocalBinaryResource(User user, BrokerPool pool, LocalCollection collection, java.lang.String docId)
           
 
Method Summary
 java.lang.Object getContent()
           
 int getContentLength()
           
 java.util.Date getCreationTime()
           
protected  DocumentImpl getDocument(DBBroker broker, boolean lock)
           
 java.lang.String getId()
           
 java.util.Date getLastModificationTime()
           
 java.lang.String getMimeType()
           
 Collection getParentCollection()
           
 Permission getPermissions()
           
 java.lang.String getResourceType()
           
protected  DocumentImpl openDocument(DBBroker broker, int lockMode)
           
 void setContent(java.lang.Object value)
           
 
Methods inherited from class org.exist.xmldb.AbstractEXistResource
closeDocument, getDocType, setDocType, setLexicalHandler, setMimeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rawData

protected byte[] rawData

datecreated

protected java.util.Date datecreated

datemodified

protected java.util.Date datemodified
Constructor Detail

LocalBinaryResource

public LocalBinaryResource(User user,
                           BrokerPool pool,
                           LocalCollection collection,
                           java.lang.String docId)
Method Detail

getParentCollection

public Collection getParentCollection()
                               throws XMLDBException
Throws:
XMLDBException

getId

public java.lang.String getId()
                       throws XMLDBException
Throws:
XMLDBException

getResourceType

public java.lang.String getResourceType()
                                 throws XMLDBException
Throws:
XMLDBException

getContent

public java.lang.Object getContent()
                            throws XMLDBException
Throws:
XMLDBException

setContent

public void setContent(java.lang.Object value)
                throws XMLDBException
Throws:
XMLDBException

getCreationTime

public java.util.Date getCreationTime()
                               throws XMLDBException
Specified by:
getCreationTime in interface EXistResource
Specified by:
getCreationTime in class AbstractEXistResource
Throws:
XMLDBException

getLastModificationTime

public java.util.Date getLastModificationTime()
                                       throws XMLDBException
Specified by:
getLastModificationTime in interface EXistResource
Specified by:
getLastModificationTime in class AbstractEXistResource
Throws:
XMLDBException

getMimeType

public java.lang.String getMimeType()
                             throws XMLDBException
Specified by:
getMimeType in interface EXistResource
Overrides:
getMimeType in class AbstractEXistResource
Throws:
XMLDBException

getPermissions

public Permission getPermissions()
                          throws XMLDBException
Specified by:
getPermissions in interface EXistResource
Specified by:
getPermissions in class AbstractEXistResource
Throws:
XMLDBException

getContentLength

public int getContentLength()
                     throws XMLDBException
Throws:
XMLDBException

getDocument

protected DocumentImpl getDocument(DBBroker broker,
                                   boolean lock)
                            throws XMLDBException
Throws:
XMLDBException

openDocument

protected DocumentImpl openDocument(DBBroker broker,
                                    int lockMode)
                             throws XMLDBException
Overrides:
openDocument in class AbstractEXistResource
Throws:
XMLDBException


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.