|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.dom.NodeImpl
org.exist.dom.DocumentImpl
org.exist.dom.BinaryDocument
Represents a binary resource. Binary resources are just stored
as binary data in a single overflow page. However, class BinaryDocument
extends DocumentImpl and thus provides the
same interface.
| Field Summary |
| Fields inherited from class org.exist.dom.DocumentImpl |
BINARY_FILE, permissions, UNKNOWN_DOCUMENT_ID, XML_FILE |
| Fields inherited from class org.exist.dom.NodeImpl |
LOG |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
BinaryDocument(DBBroker broker)
|
|
BinaryDocument(DBBroker broker,
Collection collection)
|
|
BinaryDocument(DBBroker broker,
java.lang.String fileName)
|
|
BinaryDocument(DBBroker broker,
java.lang.String docName,
Collection collection)
|
|
| Method Summary | |
long |
getPage()
|
byte |
getResourceType()
Returns the type of this resource, either DocumentImpl.XML_FILE or
DocumentImpl.BINARY_FILE. |
void |
read(VariableByteInput istream)
|
void |
setPage(long page)
|
void |
write(VariableByteOutputStream ostream)
|
| Methods inherited from class org.exist.dom.NodeImpl |
appendChild, appendChildren, cloneNode, getAttributes, getAttributesCount, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeValue, getPrefix, hasAttributes, hasChildNodes, insertAfter, insertAfter, insertBefore, insertBefore, normalize, removeChild, removeChild, replaceChild, replaceChild, setAttributes, setNodeName, setNodeValue, setPrefix, supports, updateChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeValue, getPrefix, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Constructor Detail |
public BinaryDocument(DBBroker broker)
public BinaryDocument(DBBroker broker,
Collection collection)
public BinaryDocument(DBBroker broker,
java.lang.String fileName)
public BinaryDocument(DBBroker broker,
java.lang.String docName,
Collection collection)
| Method Detail |
public byte getResourceType()
DocumentImplDocumentImpl.XML_FILE or
DocumentImpl.BINARY_FILE.
getResourceType in class DocumentImplpublic void setPage(long page)
public long getPage()
public void write(VariableByteOutputStream ostream)
throws java.io.IOException
write in class DocumentImpljava.io.IOException
public void read(VariableByteInput istream)
throws java.io.IOException,
java.io.EOFException
read in class DocumentImpljava.io.IOException
java.io.EOFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||