org.gjt.xpp
public class XmlPullParserFactory extends Object
See Also: XmlPullParser
Field Summary | |
---|---|
static String | DEFAULT_PROPERTY_NAME |
Constructor Summary | |
---|---|
protected | XmlPullParserFactory()
Proteted constructor to be called by factory implementations. |
Method Summary | |
---|---|
boolean | isNamespaceAware()
Indicates whether or not the factory is configured to produce
parsers which are namespace aware.
|
XmlEndTag | newEndTag()
Create new end tag. |
XmlFormatter | newFormatter()
Return new XML formatter. |
static XmlPullParserFactory | newInstance()
Get a new instance of a PullParserFactory used to create XPP. |
static XmlPullParserFactory | newInstance(String factoryClassName)
Get a new instance of a PullParserFactory from given class name.
|
static XmlPullParserFactory | newInstance(Class classLoaderCtx)
Get a new instance of a PullParserFactory used to create XPP.
|
XmlNode | newNode()
Return new XML node. |
XmlNode | newNode(XmlPullParser pp)
Return new XML node that is represeting tree from current pull parser start tag. |
XmlPullNode | newPullNode(XmlPullParser pp)
Return new XML pull node that is represeting tree from current pull parser start tag. |
XmlPullParser | newPullParser()
Create new XML pull parser. |
XmlRecorder | newRecorder()
Return new XML recorder. |
XmlStartTag | newStartTag()
Return new XML start tag. |
XmlNode | readNode(Reader reader, boolean closeAtEnd)
Read XmlNode from input - essentially it is utility function that
will create instance of pull parser, feed input inpt it and
return new node tree parsed form the input.
|
XmlNode | readNode(Reader reader)
Equivalent to calling readNode(reader, false); |
void | setNamespaceAware(boolean awareness)
Specifies that the parser produced by this factory will provide
support for XML namespaces.
|
void | writeNode(XmlNode node, Writer writer, boolean closeAtEnd) |
void | writeNode(XmlNode node, Writer writer)
Equivalent to calling writeNode(node, writer, false); |
Returns: true if the factory is configured to produce parsers which are namespace aware; false otherwise.
Parameters: factoryClassName use specified factory class if not null
NOTE: passing classLoaderCtx is not very useful in ME but can be useful in container environment where multiple class loaders are used (it is using Class as ClassLoader is not in ME profile).
Parameters: classLoaderCtx if not null it is used to find default factory and to create instance
Parameters: awareness true if the parser produced by this code will provide support for XML namespaces; false otherwise.