Interface MetaHandler


  • public interface MetaHandler
    The MetaHandler interface allows a small measure of interaction between the XML document being parsed and the parent process. <meta> tags can be placed in the document head, and many are already defined - title to set the title of the document, password to encrypt the document and so on.

    Any meta tags that aren't recognised can be passed to an implementation of this class. This allows custom actions to be performed - for example, you could add <meta name="outputfilename" value="report.pdf"> to your documents to control the destination of the file.

    • Method Detail

      • handleMetaTag

        void handleMetaTag​(java.lang.String name,
                           java.lang.String value)
                    throws org.xml.sax.SAXException
        Called when an unknown meta tag is encountered.
        Parameters:
        name - the value of the name attribute
        value - the value of the value attribute
        Throws:
        SAXException - if an error is encountered. This will halt the parsing process