Module org.sejda.sambox
Class OperatorProcessorDecorator
java.lang.Object
org.sejda.sambox.contentstream.operator.OperatorProcessor
org.sejda.sambox.contentstream.operator.OperatorProcessorDecorator
decorator for an
OperatorProcessor- Author:
- Andrea Vacondio
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorProcessorDecorator(OperatorProcessor delegate) OperatorProcessorDecorator(OperatorProcessor delegate, OperatorConsumer consumer) Decorates the givenOperatorProcessorwith the givenOperatorConsumerfunction -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidProcess the operator.voidsetConsumer(OperatorConsumer consumer) Set the consumer that decorates this OperatorProcessorvoidsetContext(PDFStreamEngine context) Sets the processing context.Methods inherited from class org.sejda.sambox.contentstream.operator.OperatorProcessor
checkArrayTypesClass
-
Constructor Details
-
OperatorProcessorDecorator
Decorates the givenOperatorProcessorwith the givenOperatorConsumerfunction- Parameters:
delegate-consumer-
-
OperatorProcessorDecorator
-
-
Method Details
-
process
Description copied from class:OperatorProcessorProcess the operator.- Specified by:
processin classOperatorProcessor- Parameters:
operator- the operator to processoperands- the operands to use when processing- Throws:
IOException- if the operator cannot be processed
-
getName
- Specified by:
getNamein classOperatorProcessor- Returns:
- the name of this operator, e.g. "BI".
-
getContext
- Overrides:
getContextin classOperatorProcessor- Returns:
- the processing context
-
setContext
Description copied from class:OperatorProcessorSets the processing context.- Overrides:
setContextin classOperatorProcessor- Parameters:
context- the processing context.
-
setConsumer
Set the consumer that decorates this OperatorProcessor- Parameters:
consumer-
-