Class FopConfParser
java.lang.Object
org.apache.fop.apps.FopConfParser
Parses the FOP configuration file and returns a
FopFactoryBuilder which builds a
FopFactory.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final FopFactoryBuilderprivate static final Stringprivate static final Stringprivate static final Stringprivate static final org.apache.commons.logging.Logprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionFopConfParser(File fopConfFile) Constructor that takes the FOP conf and uses the default URI resolver.FopConfParser(File fopConfFile, URI defaultBaseURI) Constructor that takes the FOP conf and a default base URI and uses the default URI resolver.FopConfParser(File fopConfFile, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Constructor that parses the FOP conf and uses the URI resolver given.FopConfParser(InputStream fopConfStream, URI defaultBaseURI) Constructor that takes the FOP conf in the form of anInputStream.FopConfParser(InputStream fopConfStream, URI baseURI, EnvironmentProfile enviro) FopConfParser(InputStream fopConfStream, URI defaultBaseURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Constructor that takes the FOP conf in the form of anInputStream.FopConfParser(InputStream fopConfStream, EnvironmentProfile enviro) Constructor that takes the FOP conf in the form of anInputStream.FopConfParser(Configuration cfg, FopFactoryBuilder fopFactoryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddError(String message, StringBuffer error) private voidconfigure(URI baseURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, Configuration cfg) private voidconfigureImageLoading(Configuration parent, boolean strict) Returns theFopFactoryBuilder.private voidsetHyphenationBase(Configuration cfg, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, URI baseURI, FopFactoryBuilder fopFactoryBuilder) private voidsetHyphPatNames(Configuration cfg, FopFactoryBuilder builder, boolean strict)
-
Field Details
-
PREFER_RENDERER
- See Also:
-
TABLE_BORDER_OVERPAINT
- See Also:
-
SIMPLE_LINE_BREAKING
- See Also:
-
SKIP_PAGE_POSITION_ONLY_ALLOWED
- See Also:
-
LEGACY_SKIP_PAGE_POSITION_ONLY
- See Also:
-
LEGACY_LAST_PAGE_CHANGE_IPD
- See Also:
-
LEGACY_FO_WRAPPER
- See Also:
-
LOG
private static final org.apache.commons.logging.Log LOG -
ACCESSIBILITY
- See Also:
-
fopFactoryBuilder
-
-
Constructor Details
-
FopConfParser
public FopConfParser(InputStream fopConfStream, EnvironmentProfile enviro) throws SAXException, IOException Constructor that takes the FOP conf in the form of anInputStream. A default base URI must be given as a fall-back mechanism for URI resolution.- Parameters:
fopConfStream- the fop conf input streamenviro- the profile of the FOP deployment environment- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
public FopConfParser(InputStream fopConfStream, URI defaultBaseURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) throws SAXException, IOException Constructor that takes the FOP conf in the form of anInputStream. A default base URI must be given as a fall-back mechanism for URI resolution.- Parameters:
fopConfStream- the fop conf input streamdefaultBaseURI- the default base URIresourceResolver- the URI resolver- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
public FopConfParser(InputStream fopConfStream, URI defaultBaseURI) throws SAXException, IOException Constructor that takes the FOP conf in the form of anInputStream. 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 streamdefaultBaseURI- the default base URI- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
Constructor that takes the FOP conf and uses the default URI resolver.- Parameters:
fopConfFile- the FOP conf file- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
Constructor that takes the FOP conf and a default base URI and uses the default URI resolver.- Parameters:
fopConfFile- the FOP conf filedefaultBaseURI- the default base URI- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
public FopConfParser(File fopConfFile, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) throws SAXException, IOException Constructor that parses the FOP conf and uses the URI resolver given.- Parameters:
fopConfFile- the FOP conf fileresourceResolver- the URI resolver- Throws:
SAXException- if a SAX error was thrown parsing the FOP confIOException- if an I/O error is thrown while parsing the FOP conf
-
FopConfParser
public FopConfParser(InputStream fopConfStream, URI baseURI, EnvironmentProfile enviro) throws SAXException, IOException - Throws:
SAXExceptionIOException
-
FopConfParser
- Throws:
SAXException
-
-
Method Details
-
configure
private void configure(URI baseURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, Configuration cfg) throws FOPException - Throws:
FOPException
-
setHyphenationBase
private void setHyphenationBase(Configuration cfg, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, URI baseURI, FopFactoryBuilder fopFactoryBuilder) throws FOPException - Throws:
FOPException
-
setHyphPatNames
private void setHyphPatNames(Configuration cfg, FopFactoryBuilder builder, boolean strict) throws FOPException - Throws:
FOPException
-
addError
-
configureImageLoading
- Throws:
FOPException
-
getFopFactoryBuilder
Returns theFopFactoryBuilder.- Returns:
- the object for configuring the
FopFactory
-