Class EnvironmentalProfileFactory
java.lang.Object
org.apache.fop.apps.EnvironmentalProfileFactory
Creates an
EnvironmentProfile that sets the environment in which a FOP instance is run.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentProfilecreateDefault(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Creates the default environment that FOP is invoked in.private static FontManagercreateFontManager(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, FontDetector fontDetector, FontCacheManager fontCacheManager) static EnvironmentProfilecreateRestrictedIO(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Creates an IO-restricted environment for FOP by disabling some of the environment-specific functionality within FOP.
-
Constructor Details
-
EnvironmentalProfileFactory
private EnvironmentalProfileFactory()
-
-
Method Details
-
createDefault
public static EnvironmentProfile createDefault(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Creates the default environment that FOP is invoked in. This default profile has no operational restrictions for FOP.- Parameters:
defaultBaseUri- the default base URI for resolving resource URIsresourceResolver- the resource resolver- Returns:
- the environment profile
-
createRestrictedIO
public static EnvironmentProfile createRestrictedIO(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Creates an IO-restricted environment for FOP by disabling some of the environment-specific functionality within FOP.- Parameters:
defaultBaseUri- the default base URI for resolving resource URIsresourceResolver- the resource resolver- Returns:
- the environment profile
-
createFontManager
private static FontManager createFontManager(URI defaultBaseUri, org.apache.xmlgraphics.io.ResourceResolver resourceResolver, FontDetector fontDetector, FontCacheManager fontCacheManager)
-