|
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 FONIDocument
DataModelException
java.io.IOException
public int getRootNode()
FONIDocument
getRootNode
in interface FONIDocument
public int getKind(int nodeId)
FONIDocument
getKind
in interface FONIDocument
public QName getName(int nodeId)
FONIDocument
getName
in interface FONIDocument
public int getNameId(int offset)
FONIDocument
getNameId
in interface FONIDocument
public QName pnGetName(int nodeId)
FONIDocument
pnGetName
in interface FONIDocument
public int pnGetNameId(int nodeId)
FONIDocument
pnGetNameId
in interface FONIDocument
public int getParent(int nodeId)
getParent
in interface FONIDocument
public int getNextSibling(int nodeId)
getNextSibling
in interface FONIDocument
public int getNodeNext(int nodeId)
FONIDocument
getNodeNext
in interface FONIDocument
public int getNodeAfter(int nodeId)
FONIDocument
getNodeAfter
in interface FONIDocument
public int getNodeSpan(int nodeId)
getNodeSpan
in interface FONIDocument
public int getFirstChild(int nodeId)
getFirstChild
in interface FONIDocument
public java.lang.String getStringValue(int nodeId)
FONIDocument
getStringValue
in interface FONIDocument
public int getAttrCount(int nodeId)
FONIDocument
getAttrCount
in interface FONIDocument
public int getAttribute(int nodeId, int nameId)
FONIDocument
getAttribute
in interface FONIDocument
public int pnGetNext(int nodeId)
FONIDocument
pnGetNext
in interface FONIDocument
public 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 FONIDocument
public int getDefinedNSCount(int nodeId)
FONIDocument
getDefinedNSCount
in interface FONIDocument
public int getFirstNSNode(int nodeId, boolean inScope)
FONIDocument
getFirstNSNode
in interface FONIDocument
public java.lang.Object getValue(int nodeId)
FONIDocument
getValue
in interface FONIDocument
public long getIntegerValue(int nodeId)
FONIDocument
getIntegerValue
in interface FONIDocument
public int getElementNameCount()
FONIDocument
getElementNameCount
in interface FONIDocument
public QName getElementName(int nameId)
FONIDocument
getElementName
in interface FONIDocument
public int internElementName(QName name)
FONIDocument
internElementName
in interface FONIDocument
public int getOtherNameCount()
FONIDocument
getOtherNameCount
in interface FONIDocument
public QName getOtherName(int nameId)
FONIDocument
getOtherName
in interface FONIDocument
public int internOtherName(QName name)
FONIDocument
internOtherName
in interface FONIDocument
public void close() throws java.io.IOException, org.xml.sax.SAXException
DocumentWriter
close
in class DocumentWriter
java.io.IOException
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.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.ContentHandler
org.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.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
public 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.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.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.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void comment(char[] ch, int start, int length)
comment
in interface org.xml.sax.ext.LexicalHandler
public void startCDATA()
startCDATA
in interface org.xml.sax.ext.LexicalHandler
public void endCDATA()
endCDATA
in interface org.xml.sax.ext.LexicalHandler
public void startEntity(java.lang.String name)
startEntity
in interface org.xml.sax.ext.LexicalHandler
public void endEntity(java.lang.String name)
endEntity
in interface org.xml.sax.ext.LexicalHandler
public int getCurrentNode()
public boolean isExported()
isExported
in interface FONIDocument
public 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 |