Interface XmlUtils.WriteMapCallback

  • All Known Implementing Classes:
    PersistableBundle
    Enclosing class:
    XmlUtils

    public static interface XmlUtils.WriteMapCallback
    • Method Detail

      • writeUnknownObject

        void writeUnknownObject​(Object v,
                                String name,
                                XmlSerializer out)
                         throws XmlPullParserException,
                                IOException
        Called from writeMapXml when an Object type is not recognized. The implementer must write out the entire element including start and end tags.
        Parameters:
        v - The object to be written out
        name - The mapping key for v. Must be written into the "name" attribute of the start tag.
        out - The XML output stream.
        Throws:
        XmlPullParserException - on unrecognized Object type.
        IOException - on XmlSerializer serialization errors.