|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jeuclid.SAXBuilder
public class SAXBuilder
Generator for creating a MathElement tree from SAX events.
Constructor Summary | |
---|---|
SAXBuilder()
default constructor. |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Receive notification of the end of an element. |
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI mapping. |
DocumentElement |
getMathRootElement()
Returns the created math root element. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(String target,
String data)
Receive notification of a processing instruction. |
void |
setDocumentLocator(Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
skippedEntity(String name)
Receive notification of a skipped entity. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
Receive notification of the beginning of an element. |
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAXBuilder()
Method Detail |
---|
public DocumentElement getMathRootElement()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.public void endDocument()
endDocument
in interface ContentHandler
public void endElement(String namespaceURI, String localName, String qName)
endElement
in interface ContentHandler
namespaceURI
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being
performed.localName
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName
- The qualified XML 1.0 name (with prefix), or the empty
string if qualified names are not available.public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes attributes)
startElement
in interface ContentHandler
namespaceURI
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being
performed.localName
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName
- The qualified name (with prefix), or the empty string if
qualified names are not available.attributes
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
prefix
- Prefixpublic void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
ch
- Space charstart
- Start positionlength
- Lengthpublic void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
target
- Targetdata
- Datapublic void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- Locatorpublic void skippedEntity(String name)
skippedEntity
in interface ContentHandler
name
- Entity namepublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
prefix
- Prefixuri
- Uri
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |