Class FopConfParser


  • public class FopConfParser
    extends java.lang.Object
    Parses the FOP configuration file and returns a FopFactoryBuilder which builds a FopFactory.
    • Field Detail

      • TABLE_BORDER_OVERPAINT

        private static final java.lang.String TABLE_BORDER_OVERPAINT
        See Also:
        Constant Field Values
      • log

        private final org.apache.commons.logging.Log log
    • Constructor Detail

      • FopConfParser

        public FopConfParser​(java.io.InputStream fopConfStream,
                             EnvironmentProfile enviro)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that takes the FOP conf in the form of an InputStream. A default base URI must be given as a fall-back mechanism for URI resolution.
        Parameters:
        fopConfStream - the fop conf input stream
        enviro - the profile of the FOP deployment environment
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.InputStream fopConfStream,
                             java.net.URI defaultBaseURI,
                             org.apache.xmlgraphics.io.ResourceResolver resourceResolver)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that takes the FOP conf in the form of an InputStream. A default base URI must be given as a fall-back mechanism for URI resolution.
        Parameters:
        fopConfStream - the fop conf input stream
        defaultBaseURI - the default base URI
        resourceResolver - the URI resolver
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.InputStream fopConfStream,
                             java.net.URI defaultBaseURI)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that takes the FOP conf in the form of an InputStream. A default base URI must be given as a fall-back mechanism for URI resolution. The default URI resolvers is used.
        Parameters:
        fopConfStream - the fop conf input stream
        defaultBaseURI - the default base URI
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.File fopConfFile)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that takes the FOP conf and uses the default URI resolver.
        Parameters:
        fopConfFile - the FOP conf file
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.File fopConfFile,
                             java.net.URI defaultBaseURI)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that takes the FOP conf and a default base URI and uses the default URI resolver.
        Parameters:
        fopConfFile - the FOP conf file
        defaultBaseURI - the default base URI
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.File fopConfFile,
                             org.apache.xmlgraphics.io.ResourceResolver resourceResolver)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Constructor that parses the FOP conf and uses the URI resolver given.
        Parameters:
        fopConfFile - the FOP conf file
        resourceResolver - the URI resolver
        Throws:
        org.xml.sax.SAXException - if a SAX error was thrown parsing the FOP conf
        java.io.IOException - if an I/O error is thrown while parsing the FOP conf
      • FopConfParser

        public FopConfParser​(java.io.InputStream fopConfStream,
                             java.net.URI baseURI,
                             EnvironmentProfile enviro)
                      throws org.xml.sax.SAXException,
                             java.io.IOException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • FopConfParser

        public FopConfParser​(Configuration cfg,
                             FopFactoryBuilder fopFactoryBuilder)
                      throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException