public abstract class OperatorProcessor extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected PDFStreamEngine | contextThe processing context. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | OperatorProcessor()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. | 
| void | setContext(PDFStreamEngine context)Sets the processing context. | 
protected PDFStreamEngine context
protected final PDFStreamEngine getContext()
public void setContext(PDFStreamEngine context)
context - the processing context.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()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.