XmlReadHandler
public class ColorReadHandler extends AbstractXmlReadHandler
Color
objects from an XML element.Constructor | Description |
---|---|
ColorReadHandler() |
Creates a new handler.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getObject() |
Returns the color under construction.
|
protected void |
startParsing(org.xml.sax.Attributes attrs) |
Called at the start of parsing a
Color element, this method reads the attributes and
constructs the Color . |
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
public ColorReadHandler()
protected void startParsing(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
Color
element, this method reads the attributes and
constructs the Color
.startParsing
in class AbstractXmlReadHandler
attrs
- the attributes.org.xml.sax.SAXException
- to indicate a parsing error.public java.lang.Object getObject()