Class InlineImageValidationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.InlineImageValidationContext
-
- All Implemented Interfaces:
IValidationContext
public class InlineImageValidationContext extends java.lang.Object implements IValidationContext
Class for inline image validation context.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDictionarycurrentColorSpacesprivate PdfStreamimage
-
Constructor Summary
Constructors Constructor Description InlineImageValidationContext(PdfStream image, PdfResources resources)Instantiates a newInlineImageValidationContextbased on image and resources.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDictionarygetCurrentColorSpaces()Gets the current color space.PdfStreamgetImage()Gets the image.ValidationTypegetType()Gets type of the context.
-
-
-
Field Detail
-
image
private final PdfStream image
-
currentColorSpaces
private final PdfDictionary currentColorSpaces
-
-
Constructor Detail
-
InlineImageValidationContext
public InlineImageValidationContext(PdfStream image, PdfResources resources)
Instantiates a newInlineImageValidationContextbased on image and resources.- Parameters:
image- the imageresources- the resources which are used to extract color space of the image
-
-
Method Detail
-
getImage
public PdfStream getImage()
Gets the image.- Returns:
- the image
-
getCurrentColorSpaces
public PdfDictionary getCurrentColorSpaces()
Gets the current color space.- Returns:
- the color space
-
getType
public ValidationType getType()
Description copied from interface:IValidationContextGets type of the context.- Specified by:
getTypein interfaceIValidationContext- Returns:
- the type
-
-