Package com.dd.plist

Class XMLPropertyListParser.PlistDtdResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver
    Enclosing class:
    XMLPropertyListParser

    private static class XMLPropertyListParser.PlistDtdResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Offline resolver for Apple's PLIST DTDs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.InputSource resolveEntity​(java.lang.String publicId, java.lang.String systemId)
      Allow the application to resolve external entities.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PLIST_PUBLIC_ID_1

        private static final java.lang.String PLIST_PUBLIC_ID_1
        See Also:
        Constant Field Values
      • PLIST_PUBLIC_ID_2

        private static final java.lang.String PLIST_PUBLIC_ID_2
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlistDtdResolver

        PlistDtdResolver()
    • Method Detail

      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicId,
                                                     java.lang.String systemId)
        Allow the application to resolve external entities. This specific implementation returns an empty definition for Apple's PLIST DTDs so that parsing can happen offline.
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Parameters:
        publicId - The public identifier of the external entity being referenced, or null if none was supplied.
        systemId - The system identifier of the external entity being referenced.
        Returns:
        An empty input source for the PLIST DTDs. For all other DTDs null is returned.