org.xmlpull.mxp1
Class MXParserFactory

java.lang.Object
  extended by org.xmlpull.v1.XmlPullParserFactory
      extended by org.xmlpull.mxp1.MXParserFactory

public class MXParserFactory
extends XmlPullParserFactory

Simple facotry to speed up creation process.

Author:
Aleksander Slominski

Field Summary
protected static boolean stringCachedParserAvailable
           
 
Fields inherited from class org.xmlpull.v1.XmlPullParserFactory
classNamesLocation, features, parserClasses, PROPERTY_NAME, serializerClasses
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringCachedParserAvailable

protected static boolean stringCachedParserAvailable
Constructor Detail

MXParserFactory

public MXParserFactory()
Method Detail

newPullParser

public XmlPullParser newPullParser()
                            throws XmlPullParserException
Description copied from class: org.xmlpull.v1.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: org.xmlpull.v1.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) 2006 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.