public interface XmlParserFactory
| Modifier and Type | Method and Description |
|---|---|
org.xmlpull.v1.XmlPullParser |
createXmlParser()
Creates and returns an
XmlPullParser. |
org.xmlpull.v1.XmlPullParser |
createXmlParserForFile(java.lang.String fileName)
Returns an
XmlPullParser for the non-PSI version of an XML file. |
org.xmlpull.v1.XmlPullParser |
createXmlParserForPsiFile(java.lang.String fileName)
Returns an
XmlPullParser for the PSI version of an XML file. |
@Nullable
org.xmlpull.v1.XmlPullParser createXmlParserForPsiFile(@NonNull
java.lang.String fileName)
XmlPullParser for the PSI version of an XML file.
The call to the method should be guarded by a check for
RenderParamsFlag.FLAG_KEY_XML_FILE_PARSER_SUPPORT.
fileName - name of the file to parse@Nullable
org.xmlpull.v1.XmlPullParser createXmlParserForFile(@NonNull
java.lang.String fileName)
XmlPullParser for the non-PSI version of an XML file.
The call to the method should be guarded by a check for
RenderParamsFlag.FLAG_KEY_XML_FILE_PARSER_SUPPORT.
fileName - name of the file to parse@NonNull org.xmlpull.v1.XmlPullParser createXmlParser()
XmlPullParser. This method is intended for delegating calls
from android.util.Xml_Delegate. It should only be used when the name of the file is
not available at the point of the parser creation.