Interface XmlUtils.ReadMapCallback

  • Enclosing class:
    XmlUtils

    public static interface XmlUtils.ReadMapCallback
    • Method Detail

      • readThisUnknownObjectXml

        Object readThisUnknownObjectXml​(XmlPullParser in,
                                        String tag)
                                 throws XmlPullParserException,
                                        IOException
        Called from readThisMapXml when a START_TAG is not recognized. The input stream is positioned within the start tag so that attributes can be read using in.getAttribute.
        Parameters:
        in - the XML input stream
        tag - the START_TAG that was not recognized.
        Returns:
        the Object parsed from the stream which will be put into the map.
        Throws:
        XmlPullParserException - if the START_TAG is not recognized.
        IOException - on XmlPullParser serialization errors.