Package org.apache.fop.apps
Class FopFactoryConfigurator
- java.lang.Object
-
- org.apache.fop.apps.FopFactoryConfigurator
-
public class FopFactoryConfigurator extends java.lang.ObjectFopFactory configurator
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_BREAK_INDENT_INHERITANCEDefines if FOP should use an alternative rule to determine text indentsstatic java.lang.StringDEFAULT_PAGE_HEIGHTDefines the default page-heightstatic java.lang.StringDEFAULT_PAGE_WIDTHDefines the default page-widthstatic floatDEFAULT_SOURCE_RESOLUTIONDefines the default source resolution (72dpi) for FOPstatic booleanDEFAULT_STRICT_FO_VALIDATIONDefines if FOP should use strict validation for FO and user configstatic booleanDEFAULT_STRICT_USERCONFIG_VALIDATIONDefines if FOP should validate the user config strictlystatic floatDEFAULT_TARGET_RESOLUTIONDefines the default target resolution (72dpi) for FOP
-
Constructor Summary
Constructors Constructor Description FopFactoryConfigurator(FopFactory factory)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(FopFactory factory)Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...org.apache.avalon.framework.configuration.ConfigurationgetUserConfig()Get the avalon user configuration.voidsetUserConfig(java.io.File userConfigFile)Set the user configuration.voidsetUserConfig(java.lang.String uri)Set the user configuration from an URI.voidsetUserConfig(org.apache.avalon.framework.configuration.Configuration cfg)Set the user configuration.
-
-
-
Field Detail
-
DEFAULT_BREAK_INDENT_INHERITANCE
public static final boolean DEFAULT_BREAK_INDENT_INHERITANCE
Defines if FOP should use an alternative rule to determine text indents- See Also:
- Constant Field Values
-
DEFAULT_STRICT_USERCONFIG_VALIDATION
public static final boolean DEFAULT_STRICT_USERCONFIG_VALIDATION
Defines if FOP should validate the user config strictly- See Also:
- Constant Field Values
-
DEFAULT_STRICT_FO_VALIDATION
public static final boolean DEFAULT_STRICT_FO_VALIDATION
Defines if FOP should use strict validation for FO and user config- See Also:
- Constant Field Values
-
DEFAULT_PAGE_WIDTH
public static final java.lang.String DEFAULT_PAGE_WIDTH
Defines the default page-width- See Also:
- Constant Field Values
-
DEFAULT_PAGE_HEIGHT
public static final java.lang.String DEFAULT_PAGE_HEIGHT
Defines the default page-height- See Also:
- Constant Field Values
-
DEFAULT_SOURCE_RESOLUTION
public static final float DEFAULT_SOURCE_RESOLUTION
Defines the default source resolution (72dpi) for FOP- See Also:
- Constant Field Values
-
DEFAULT_TARGET_RESOLUTION
public static final float DEFAULT_TARGET_RESOLUTION
Defines the default target resolution (72dpi) for FOP- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FopFactoryConfigurator
public FopFactoryConfigurator(FopFactory factory)
Default constructor- Parameters:
factory- fop factory
-
-
Method Detail
-
configure
public void configure(FopFactory factory) throws FOPException
Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...- Parameters:
factory- fop factory- Throws:
FOPException- fop exception
-
setUserConfig
public void setUserConfig(java.io.File userConfigFile) throws org.xml.sax.SAXException, java.io.IOExceptionSet the user configuration.- Parameters:
userConfigFile- the configuration file- Throws:
java.io.IOException- if an I/O error occursorg.xml.sax.SAXException- if a parsing error occurs
-
setUserConfig
public void setUserConfig(java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOExceptionSet the user configuration from an URI.- Parameters:
uri- the URI to the configuration file- Throws:
java.io.IOException- if an I/O error occursorg.xml.sax.SAXException- if a parsing error occurs
-
setUserConfig
public void setUserConfig(org.apache.avalon.framework.configuration.Configuration cfg) throws FOPExceptionSet the user configuration.- Parameters:
cfg- avalon configuration- Throws:
FOPException- if a configuration problem occurs
-
getUserConfig
public org.apache.avalon.framework.configuration.Configuration getUserConfig()
Get the avalon user configuration.- Returns:
- the user configuration
-
-