public abstract class OperatorProcessor extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
OperatorProcessor(PDFStreamEngine context)
Creates a new OperatorProcessor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkArrayTypesClass(List<COSBase> operands,
Class<?> clazz)
Check whether all operands list elements are an instance of a specific class.
|
protected PDFStreamEngine |
getContext()
Returns the processing context.
|
abstract String |
getName()
Returns the name of this operator, e.g.
|
abstract void |
process(Operator operator,
List<COSBase> operands)
Process the operator.
|
protected OperatorProcessor(PDFStreamEngine context)
context - the processing context to be usedprotected final PDFStreamEngine getContext()
public abstract void process(Operator operator, List<COSBase> operands) throws IOException
operator - the operator to processoperands - the operands to use when processingIOException - if the operator cannot be processedpublic abstract String getName()
public boolean checkArrayTypesClass(List<COSBase> operands, Class<?> clazz)
operands - The operands list.clazz - The expected class.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.