org.xmlpull.v1.wrapper
Class XmlPullWrapperFactory

java.lang.Object
  extended by org.xmlpull.v1.wrapper.XmlPullWrapperFactory

public class XmlPullWrapperFactory
extends java.lang.Object

Handy functions that combines XmlPull API into higher level functionality.

NOTE: returned wrapper object is not multi-thread safe


Field Summary
protected  XmlPullParserFactory f
           
 
Constructor Summary
protected XmlPullWrapperFactory(XmlPullParserFactory factory)
           
 
Method Summary
 XmlPullParserFactory getFactory()
           
 boolean getFeature(java.lang.String name)
           
 boolean isNamespaceAware()
           
 boolean isValidating()
           
static XmlPullWrapperFactory newInstance()
           
static XmlPullWrapperFactory newInstance(java.lang.String classNames, java.lang.Class context)
           
static XmlPullWrapperFactory newInstance(XmlPullParserFactory factory)
           
 XmlPullParserWrapper newPullParserWrapper()
           
 XmlPullParserWrapper newPullParserWrapper(XmlPullParser pp)
           
 XmlSerializerWrapper newSerializerWrapper()
           
 XmlSerializerWrapper newSerializerWrapper(XmlSerializer xs)
           
 void setFeature(java.lang.String name, boolean state)
           
 void setNamespaceAware(boolean awareness)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f

protected XmlPullParserFactory f
Constructor Detail

XmlPullWrapperFactory

protected XmlPullWrapperFactory(XmlPullParserFactory factory)
                         throws XmlPullParserException
Throws:
XmlPullParserException
Method Detail

newInstance

public static XmlPullWrapperFactory newInstance()
                                         throws XmlPullParserException
Throws:
XmlPullParserException

newInstance

public static XmlPullWrapperFactory newInstance(XmlPullParserFactory factory)
                                         throws XmlPullParserException
Throws:
XmlPullParserException

newInstance

public static XmlPullWrapperFactory newInstance(java.lang.String classNames,
                                                java.lang.Class context)
                                         throws XmlPullParserException
Throws:
XmlPullParserException

getFactory

public XmlPullParserFactory getFactory()
                                throws XmlPullParserException
Throws:
XmlPullParserException

setFeature

public void setFeature(java.lang.String name,
                       boolean state)
                throws XmlPullParserException
Throws:
XmlPullParserException

getFeature

public boolean getFeature(java.lang.String name)

setNamespaceAware

public void setNamespaceAware(boolean awareness)

isNamespaceAware

public boolean isNamespaceAware()

setValidating

public void setValidating(boolean validating)

isValidating

public boolean isValidating()

newPullParserWrapper

public XmlPullParserWrapper newPullParserWrapper()
                                          throws XmlPullParserException
Throws:
XmlPullParserException

newPullParserWrapper

public XmlPullParserWrapper newPullParserWrapper(XmlPullParser pp)
                                          throws XmlPullParserException
Throws:
XmlPullParserException

newSerializerWrapper

public XmlSerializerWrapper newSerializerWrapper()
                                          throws XmlPullParserException
Throws:
XmlPullParserException

newSerializerWrapper

public XmlSerializerWrapper newSerializerWrapper(XmlSerializer xs)
                                          throws XmlPullParserException
Throws:
XmlPullParserException