Class OperatorProcessor

    • Constructor Detail

      • OperatorProcessor

        protected OperatorProcessor()
        Creates a new OperatorProcessor.
    • Method Detail

      • getContext

        protected final PDFStreamEngine getContext()
        Returns the processing context.
        Returns:
        the processing context
      • setContext

        public void setContext​(PDFStreamEngine context)
        Sets the processing context.
        Parameters:
        context - the processing context.
      • process

        public abstract void process​(Operator operator,
                                     List<COSBase> operands)
                              throws IOException
        Process the operator.
        Parameters:
        operator - the operator to process
        operands - the operands to use when processing
        Throws:
        IOException - if the operator cannot be processed
      • getName

        public abstract String getName()
        Returns the name of this operator, e.g. "BI".