Class XmlResourceParserImpl

java.lang.Object
org.robolectric.android.XmlResourceParserImpl
All Implemented Interfaces:
XmlResourceParser, AttributeSet, AutoCloseable, XmlPullParser

public class XmlResourceParserImpl extends Object implements XmlResourceParser
Concrete implementation of the XmlResourceParser. Clients expects a pull parser while the resource loader initialise this object with a Document. This implementation navigates the dom and emulates a pull parser by raising all the opportune events. Note that the original android implementation is based on a set of native methods calls. Here those methods are re-implemented in java when possible.