|
Qizx/open API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
net.axyana.qizxopen.dm.DocumentWriter
net.axyana.qizxopen.dm.IDocument
A fast and memory efficient FONIDocument implementation for parsed documents. After construction it is readonly and thread safe.
| Constructor Summary | |
IDocument()
|
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
characters(java.lang.String chars)
|
void |
close()
Terminates creation of a document (required). |
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endEntity(java.lang.String name)
|
void |
endPrefixMapping(java.lang.String prefix)
|
int |
estimateMemorySize()
Cache management. |
int |
getAttrCount(int nodeId)
Returns the number of attributes of an element (not guaranteed to be efficient). |
int |
getAttribute(int nodeId,
int nameId)
Gets an attribute node by name. |
char[] |
getCharValue(int nodeId,
int reserve)
Specially meant for indexing: gets the string value of a text node. |
int |
getCurrentNode()
|
int |
getDefinedNSCount(int nodeId)
Returns the number of NS defined on this node. |
QName |
getElementName(int nameId)
Gets the QName of an element node by the internal id. |
int |
getElementNameCount()
Gets the total number of element names. |
int |
getFirstChild(int nodeId)
|
int |
getFirstNSNode(int nodeId,
boolean inScope)
Returns the first namespace node of a node. |
long |
getIntegerValue(int nodeId)
Gets an integer value from an atome of type ATOM_INT. |
int |
getKind(int nodeId)
Returns one of the kinds DOCUMENT, ELEMENT, TEXT, PROCESSING_INSTRUCTION, COMMENT, ATTRIBUTE, NAMESPACE, ATOM_XX. |
QName |
getName(int nodeId)
Gets the name of a Node. |
int |
getNameId(int offset)
Gets the name-id of a real Node. |
int |
getNextSibling(int nodeId)
|
int |
getNodeAfter(int nodeId)
Gets the node that is next in document order but not contained. |
int |
getNodeNext(int nodeId)
Gets the node that is next in document order. |
int |
getNodeSpan(int nodeId)
|
QName |
getOtherName(int nameId)
Gets the QName of a non-element node by the internal id. |
int |
getOtherNameCount()
Gets the total number of non-element node names. |
int |
getParent(int nodeId)
|
int |
getRootNode()
Returns the handle of the document node. |
java.lang.String |
getStringValue(int nodeId)
Gets the string value for any node but Attributes and Namespaces. |
java.lang.Object |
getValue(int nodeId)
Gets an atomic value from a leaf node. |
int |
internElementName(QName name)
Gets the internal id of an element name. |
int |
internOtherName(QName name)
Gets the internal id of a non-element node name. |
boolean |
isExported()
|
char[] |
pnGetCharValue(int nodeId,
int reserve)
Specially meant for indexing: gets the string value of a "pseudo-node" (attribute or NS). |
QName |
pnGetName(int nodeId)
Gets the name of a pseudo Node Attribute / Namespace. |
int |
pnGetNameId(int nodeId)
Gets the name-id of a pseudo-node Attribute / Namespace. |
int |
pnGetNext(int nodeId)
Returns the next pseudo-node (attribute or NS). |
java.lang.String |
pnGetStringValue(int nodeId)
Gets the string value for pseudo-nodes Attributes and Namespaces. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
skippedEntity(java.lang.String name)
|
void |
startCDATA()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
|
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
RemoteByteInput |
transmitNode(Node node)
|
| Methods inherited from class net.axyana.qizxopen.dm.DocumentWriter |
atom, endDTD, getBaseURI, getDocumentId, getDtdName, getDtdPublicId, getDtdSystemid, setDocumentId, setDocumentLocator, startDocument, startDTD |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.axyana.qizxopen.dm.FONIDocument |
getBaseURI, getDocumentId, setDocumentId |
| Constructor Detail |
public IDocument()
| Method Detail |
public RemoteByteInput transmitNode(Node node)
throws DataModelException,
java.io.IOException
transmitNode in interface FONIDocumentDataModelException
java.io.IOExceptionpublic int getRootNode()
FONIDocument
getRootNode in interface FONIDocumentpublic int getKind(int nodeId)
FONIDocument
getKind in interface FONIDocumentpublic QName getName(int nodeId)
FONIDocument
getName in interface FONIDocumentpublic int getNameId(int offset)
FONIDocument
getNameId in interface FONIDocumentpublic QName pnGetName(int nodeId)
FONIDocument
pnGetName in interface FONIDocumentpublic int pnGetNameId(int nodeId)
FONIDocument
pnGetNameId in interface FONIDocumentpublic int getParent(int nodeId)
getParent in interface FONIDocumentpublic int getNextSibling(int nodeId)
getNextSibling in interface FONIDocumentpublic int getNodeNext(int nodeId)
FONIDocument
getNodeNext in interface FONIDocumentpublic int getNodeAfter(int nodeId)
FONIDocument
getNodeAfter in interface FONIDocumentpublic int getNodeSpan(int nodeId)
getNodeSpan in interface FONIDocumentpublic int getFirstChild(int nodeId)
getFirstChild in interface FONIDocumentpublic java.lang.String getStringValue(int nodeId)
FONIDocument
getStringValue in interface FONIDocumentpublic int getAttrCount(int nodeId)
FONIDocument
getAttrCount in interface FONIDocument
public int getAttribute(int nodeId,
int nameId)
FONIDocument
getAttribute in interface FONIDocumentpublic int pnGetNext(int nodeId)
FONIDocument
pnGetNext in interface FONIDocumentpublic java.lang.String pnGetStringValue(int nodeId)
pnGetStringValue in interface FONIDocument
public char[] getCharValue(int nodeId,
int reserve)
FONIDocument
getCharValue in interface FONIDocument
public char[] pnGetCharValue(int nodeId,
int reserve)
FONIDocument
pnGetCharValue in interface FONIDocumentpublic int getDefinedNSCount(int nodeId)
FONIDocument
getDefinedNSCount in interface FONIDocument
public int getFirstNSNode(int nodeId,
boolean inScope)
FONIDocument
getFirstNSNode in interface FONIDocumentpublic java.lang.Object getValue(int nodeId)
FONIDocument
getValue in interface FONIDocumentpublic long getIntegerValue(int nodeId)
FONIDocument
getIntegerValue in interface FONIDocumentpublic int getElementNameCount()
FONIDocument
getElementNameCount in interface FONIDocumentpublic QName getElementName(int nameId)
FONIDocument
getElementName in interface FONIDocumentpublic int internElementName(QName name)
FONIDocument
internElementName in interface FONIDocumentpublic int getOtherNameCount()
FONIDocument
getOtherNameCount in interface FONIDocumentpublic QName getOtherName(int nameId)
FONIDocument
getOtherName in interface FONIDocumentpublic int internOtherName(QName name)
FONIDocument
internOtherName in interface FONIDocument
public void close()
throws java.io.IOException,
org.xml.sax.SAXException
DocumentWriter
close in class DocumentWriterjava.io.IOException
org.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlerpublic void characters(java.lang.String chars)
characters in class DocumentWriter
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void comment(char[] ch,
int start,
int length)
comment in interface org.xml.sax.ext.LexicalHandlerpublic void startCDATA()
startCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void endCDATA()
endCDATA in interface org.xml.sax.ext.LexicalHandlerpublic void startEntity(java.lang.String name)
startEntity in interface org.xml.sax.ext.LexicalHandlerpublic void endEntity(java.lang.String name)
endEntity in interface org.xml.sax.ext.LexicalHandlerpublic int getCurrentNode()
public boolean isExported()
isExported in interface FONIDocumentpublic int estimateMemorySize()
FONIDocument
estimateMemorySize in interface FONIDocument
|
© 2005 Axyana Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||