|
Qizx/Open v0.4p2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--net.xfra.qizxopen.dm.FONIWriter | +--net.xfra.qizxopen.dm.IDocument
A fast and memory efficient FONIDocument implementation for parsed documents. Once built, it is readonly and thread safe.
Nested Class Summary | |
class |
IDocument.AttrIterator
|
Nested classes inherited from class net.xfra.qizxopen.dm.FONIDocument |
|
Constructor Summary | |
IDocument()
|
Method Summary | |
void |
atom(java.lang.Object value)
Creates an atom with any object value. |
FONIDocument.NodeIterator |
attrIterator(int id)
Returns an Attribute iterator for a node. |
void |
characters(char[] ch,
int start,
int length)
|
void |
characters(java.lang.String chars)
A variant of SAX.characters(char[], ...) |
FONIDocument.NodeIterator |
childrenIterator(int id)
|
void |
close()
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
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. |
java.lang.String |
getBaseURI()
Returns the URI of the document. |
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. |
int |
getDocId()
|
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)
|
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. |
FONIDocument.NodeIterator |
namespaceIterator(int nodeId,
boolean inScope)
Returns the namespace nodes of a node. |
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. |
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 |
setDocId(int value)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
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)
|
Methods inherited from class net.xfra.qizxopen.dm.FONIWriter |
getDocumentId, setDocumentId, setProgressHandler |
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 |
Constructor Detail |
public IDocument()
Method Detail |
public java.lang.String getBaseURI()
FONIDocument
getBaseURI
in interface FONIDocument
public int getRootNode()
FONIDocument
getRootNode
in interface FONIDocument
public void setDocId(int value)
setDocId
in interface FONIDocument
public int getDocId()
getDocId
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 FONIDocument.NodeIterator childrenIterator(int id)
childrenIterator
in interface FONIDocument
public int getAttrCount(int nodeId)
FONIDocument
getAttrCount
in interface FONIDocument
public FONIDocument.NodeIterator attrIterator(int id)
FONIDocument
attrIterator
in interface FONIDocument
public int getAttribute(int nodeId, int nameId)
FONIDocument
getAttribute
in interface FONIDocument
public java.lang.String getStringValue(int nodeId)
FONIDocument
getStringValue
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 java.lang.Object getValue(int nodeId)
FONIDocument
getValue
in interface FONIDocument
public long getIntegerValue(int nodeId)
FONIDocument
getIntegerValue
in interface FONIDocument
public int getDefinedNSCount(int nodeId)
FONIDocument
getDefinedNSCount
in interface FONIDocument
public FONIDocument.NodeIterator namespaceIterator(int nodeId, boolean inScope)
FONIDocument
namespaceIterator
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 setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void close() throws java.io.IOException, org.xml.sax.SAXException
close
in class FONIWriter
java.io.IOException
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
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
startElement
in class org.xml.sax.helpers.DefaultHandler
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
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void characters(java.lang.String chars)
FONIWriter
characters
in class FONIWriter
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
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
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
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 startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
startDTD
in interface org.xml.sax.ext.LexicalHandler
public void endDTD()
endDTD
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 void atom(java.lang.Object value) throws org.xml.sax.SAXException
FONIWriter
atom
in class FONIWriter
org.xml.sax.SAXException
public int getCurrentNode()
public int estimateMemorySize()
FONIDocument
estimateMemorySize
in interface FONIDocument
public int getKind(int nodeId)
FONIDocument
getKind
in interface FONIDocument
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |