Package com.itextpdf.kernel.utils
Class NullCopyFilter
- java.lang.Object
-
- com.itextpdf.kernel.utils.NullCopyFilter
-
- All Implemented Interfaces:
ICopyFilter
public final class NullCopyFilter extends java.lang.Object implements ICopyFilter
A no-opICopyFilter
instance, used as default.
-
-
Field Summary
Fields Modifier and Type Field Description private static NullCopyFilter
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
NullCopyFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NullCopyFilter
getInstance()
Getter for an instance ofNullCopyFilter
.boolean
shouldProcess(PdfObject newParent, PdfName name, PdfObject value)
Verifies whether a PdfObject should be copied in the copying flow.
-
-
-
Field Detail
-
INSTANCE
private static final NullCopyFilter INSTANCE
-
-
Method Detail
-
getInstance
public static NullCopyFilter getInstance()
Getter for an instance ofNullCopyFilter
.- Returns:
- NullCopyFilter instance
-
shouldProcess
public boolean shouldProcess(PdfObject newParent, PdfName name, PdfObject value)
Description copied from interface:ICopyFilter
Verifies whether a PdfObject should be copied in the copying flow. The filter class has to take care of alternative ways to process the PdfObject if needed. When more than one filter should be used, it is upon the user to chain them together.- Specified by:
shouldProcess
in interfaceICopyFilter
- Parameters:
newParent
- the parent in the target of the PdfObject to be checkedname
- the name of the PdfObject if the parent is a PdfDictionaryvalue
- the PdfObject toi be checked- Returns:
- true, the PdfObject will be copied, false it will not be copied
-
-