ist.palcom.xml
Class XMLFactory
java.lang.Object
ist.palcom.xml.XMLFactory
- Direct Known Subclasses:
- CommunicationInfoXMLFactory
public abstract class XMLFactory
- extends java.lang.Object
XMLFactory parses XML and creates XMLRepresentables from it.
This implementation is not thread-safe.
|
Field Summary |
static java.lang.String |
DTD
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTD
public static java.lang.String DTD
XMLFactory
public XMLFactory()
createFromXMLData
public XMLRepresentable createFromXMLData(byte[] xmlData,
int offset,
int length)
throws XMLException
- Throws:
XMLException
createFromElement
public XMLRepresentable createFromElement(XmlPullParser parser)
throws XMLException
- Creates an XMLRepresentable from the element where the parser is
currently standing. When calling this method, the parser must be on the
start tag of the element. After returning from the method, the parser
will be at the end tag of the element.
- Throws:
XMLException
createFromTagName
protected abstract XMLRepresentable createFromTagName(java.lang.String tagName)
throws XMLException
- Throws:
XMLException