|
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 FONIDocumentpublic int getRootNode()
FONIDocument
getRootNode in interface FONIDocumentpublic void setDocId(int value)
setDocId in interface FONIDocumentpublic int getDocId()
getDocId 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 FONIDocument.NodeIterator childrenIterator(int id)
childrenIterator in interface FONIDocumentpublic int getAttrCount(int nodeId)
FONIDocument
getAttrCount in interface FONIDocumentpublic FONIDocument.NodeIterator attrIterator(int id)
FONIDocument
attrIterator in interface FONIDocument
public int getAttribute(int nodeId,
int nameId)
FONIDocument
getAttribute in interface FONIDocumentpublic java.lang.String getStringValue(int nodeId)
FONIDocument
getStringValue 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 java.lang.Object getValue(int nodeId)
FONIDocument
getValue in interface FONIDocumentpublic long getIntegerValue(int nodeId)
FONIDocument
getIntegerValue in interface FONIDocumentpublic int getDefinedNSCount(int nodeId)
FONIDocument
getDefinedNSCount in interface FONIDocument
public FONIDocument.NodeIterator namespaceIterator(int nodeId,
boolean inScope)
FONIDocument
namespaceIterator 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 FONIDocumentpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandler
public void close()
throws java.io.IOException,
org.xml.sax.SAXException
close in class FONIWriterjava.io.IOException
org.xml.sax.SAXException
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic 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.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerorg.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.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerorg.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.LexicalHandler
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
startDTD in interface org.xml.sax.ext.LexicalHandlerpublic void endDTD()
endDTD 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.LexicalHandler
public void atom(java.lang.Object value)
throws org.xml.sax.SAXException
FONIWriter
atom in class FONIWriterorg.xml.sax.SAXExceptionpublic int getCurrentNode()
public int estimateMemorySize()
FONIDocument
estimateMemorySize in interface FONIDocumentpublic 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 | |||||||||