|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tinyline.svg.SVGParser
The SVGParser class implements XMLHandler callbacks API for parsing the SVGT input stream.
| Constructor Summary | |
SVGParser(SVGAttr attrParser)
Constructs a new SVGParser object. |
|
| Method Summary | |
void |
attributeName(char[] buf,
int offset,
int len)
Called by XMLParser when the current lexical unit is an XML start element. |
void |
attributeValue(char[] buf,
int offset,
int len)
Called by XMLParser when the current lexical unit is an XML attribute value. |
void |
charData(char[] buf,
int offset,
int len)
Called by XMLParser when the current lexical unit is an XML char data. |
static XMLParser |
createXMLParser()
Creates a new XMLParser instance. |
void |
endDocument()
Called by XMLParser when the current lexical unit is an XML document end element. |
void |
endElement()
Called by XMLParser when the current lexical unit is an XML end element. |
int |
load(SVGDocument doc,
java.io.InputStream is)
Parses the SVGT input stream into the given SVGT document. |
void |
startDocument()
Called by XMLParser when the current lexical unit is an XML document start element. |
void |
startElement(char[] buf,
int offset,
int len)
Receive notification of the beginning of an element. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVGParser(SVGAttr attrParser)
attrParser - The SVGT attributes parser.| Method Detail |
public static XMLParser createXMLParser()
public final int load(SVGDocument doc,
java.io.InputStream is)
doc - The empty SVGT document.is - The SVGT input stream.
public void startDocument()
startDocument in interface XMLHandlerpublic void endDocument()
endDocument in interface XMLHandler
public void startElement(char[] buf,
int offset,
int len)
startElement in interface XMLHandlerbuf - The input buffer.offset - The input buffer pointer.len - The input buffer length.public void endElement()
endElement in interface XMLHandler
public void attributeName(char[] buf,
int offset,
int len)
attributeName in interface XMLHandlerbuf - the input buffer.offset - the initial offset.len - the length.
public void attributeValue(char[] buf,
int offset,
int len)
attributeValue in interface XMLHandlerbuf - the input buffer.offset - the initial offset.len - the length.
public void charData(char[] buf,
int offset,
int len)
charData in interface XMLHandlerbuf - the input buffer.offset - the initial offset.len - the length.
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||