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 PdfDictionary
currentColorSpaces
private PdfStream
image
-
Constructor Summary
Constructors Constructor Description InlineImageValidationContext(PdfStream image, PdfResources resources)
Instantiates a newInlineImageValidationContext
based on image and resources.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDictionary
getCurrentColorSpaces()
Gets the current color space.PdfStream
getImage()
Gets the image.ValidationType
getType()
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 newInlineImageValidationContext
based 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:IValidationContext
Gets type of the context.- Specified by:
getType
in interfaceIValidationContext
- Returns:
- the type
-
-