org.xmlpull.mxp1
Class MXParserFactory

java.lang.Object
  |
  +--org.xmlpull.v1.XmlPullParserFactory
        |
        +--org.xmlpull.mxp1.MXParserFactory

public class MXParserFactory
extends XmlPullParserFactory

Simple facotry to speed up creation process.

Author:
Aleksander Slominski

Field Summary
 
Fields inherited from class org.xmlpull.v1.XmlPullParserFactory
PROPERTY_NAME
 
Constructor Summary
MXParserFactory()
           
 
Method Summary
 XmlPullParser newPullParser()
          Creates a new instance of a XML Pull Parser using the currently configured factory features.
 XmlSerializer newSerializer()
          Creates a new instance of a XML Serializer.
 
Methods inherited from class org.xmlpull.v1.XmlPullParserFactory
getFeature, isNamespaceAware, isValidating, newInstance, newInstance, setFeature, setNamespaceAware, setValidating
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXParserFactory

public MXParserFactory()
Method Detail

newPullParser

public XmlPullParser newPullParser()
                            throws XmlPullParserException
Description copied from class: XmlPullParserFactory
Creates a new instance of a XML Pull Parser using the currently configured factory features.

Overrides:
newPullParser in class XmlPullParserFactory
Returns:
A new instance of a XML Pull Parser.
Throws:
XmlPullParserException - if a parser cannot be created which satisfies the requested configuration.

newSerializer

public XmlSerializer newSerializer()
                            throws XmlPullParserException
Description copied from class: XmlPullParserFactory
Creates a new instance of a XML Serializer.

NOTE: factory features are not used for XML Serializer.

Overrides:
newSerializer in class XmlPullParserFactory
Returns:
A new instance of a XML Serializer.
Throws:
XmlPullParserException - if a parser cannot be created which satisfies the requested configuration.


Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.