/** * Constructor that takes the FOP conf in the form of an {@link InputStream}. A default base URI * must be given as a fall-back mechanism for URI resolution. * * @param fopConfStream the fop conf input stream * @param enviro the profile of the FOP deployment environment * @throws SAXException if a SAX error was thrown parsing the FOP conf * @throws IOException if an I/O error is thrown while parsing the FOP conf */ public FopConfParser(InputStream fopConfStream, EnvironmentProfile enviro) throws SAXException, IOException { this(fopConfStream, enviro.getDefaultBaseURI(), enviro); }
public FallbackResolver getFallbackResolver() { return enviro.getFallbackResolver(); } }
/** {@inheritDoc} */ public FontManager getFontManager() { return enviro.getFontManager(); }
/** {@inheritDoc} */ public ResourceResolver getResourceResolver() { return enviro.getResourceResolver(); }
public FopConfParser(InputStream fopConfStream, URI baseURI, EnvironmentProfile enviro) throws SAXException, IOException { DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); Configuration cfg; try { cfg = cfgBuilder.build(fopConfStream); } catch (ConfigurationException e) { throw new FOPException(e); } // The default base URI is taken from the directory in which the fopConf resides fopFactoryBuilder = new FopFactoryBuilder(enviro).setConfiguration(cfg); configure(baseURI, enviro.getResourceResolver(), cfg); }
FopFactoryConfigImpl(EnvironmentProfile enviro) { this.enviro = enviro; this.baseURI = enviro.getDefaultBaseURI(); this.imageManager = new ImageManager(new ImageContextImpl(this)); }