public class OperatorProcessorDecorator extends OperatorProcessor
OperatorProcessor| Constructor and Description |
|---|
OperatorProcessorDecorator(OperatorProcessor delegate) |
OperatorProcessorDecorator(OperatorProcessor delegate,
OperatorConsumer consumer)
Decorates the given
OperatorProcessor with the given OperatorConsumer function |
| Modifier and Type | Method and Description |
|---|---|
PDFStreamEngine |
getContext() |
String |
getName()
Returns the name of this operator, e.g.
|
void |
process(Operator operator,
List<COSBase> operands)
Process the operator.
|
void |
setConsumer(OperatorConsumer consumer)
Set the consumer that decorates this OperatorProcessor
|
void |
setContext(PDFStreamEngine context)
Sets the processing context.
|
checkArrayTypesClasspublic OperatorProcessorDecorator(OperatorProcessor delegate, OperatorConsumer consumer)
OperatorProcessor with the given OperatorConsumer functiondelegate - consumer - public OperatorProcessorDecorator(OperatorProcessor delegate)
public void process(Operator operator, List<COSBase> operands) throws IOException
OperatorProcessorprocess in class OperatorProcessoroperator - the operator to processoperands - the operands to use when processingIOException - if the operator cannot be processedpublic String getName()
OperatorProcessorgetName in class OperatorProcessorpublic PDFStreamEngine getContext()
getContext in class OperatorProcessorpublic void setContext(PDFStreamEngine context)
OperatorProcessorsetContext in class OperatorProcessorcontext - the processing context.public void setConsumer(OperatorConsumer consumer)
consumer - Copyright © 2020 sejda. All rights reserved.