Class ColorSpaceHelperFactory
- java.lang.Object
-
- org.apache.pdfbox.preflight.graphic.ColorSpaceHelperFactory
-
public class ColorSpaceHelperFactory extends java.lang.Object
This factory create the right Helper according to the owner of the ColorSpace entry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColorSpaceHelperFactory.ColorSpaceRestriction
Enum used as argument of methods of this factory to return the right Helper.
-
Constructor Summary
Constructors Constructor Description ColorSpaceHelperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorSpaceHelper
getColorSpaceHelper(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr)
Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.
-
-
-
Method Detail
-
getColorSpaceHelper
public ColorSpaceHelper getColorSpaceHelper(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr)
Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.- ColorSpaceRestriction.NO_PATTERN : returns NoPatternColorSpaceHelper
- ColorSpaceRestriction.ONLY_DEVICE : returns DeviceColorSpaceHelper
- ColorSpaceRestriction.NO_RESTRICTION (default) : returns StandardColorSpaceHelper
- Parameters:
context
- the PreflightContext to access useful datacs
- the High level PDFBox object which represents the ColorSpacecsr
- the color space restriction- Returns:
- the ColorSpaceHelper instance.
-
-