org.pdfbox.util.operator

Class OperatorProcessor

Known Direct Subclasses:
AppendRectangleToPath, BeginInlineImage, BeginText, ClosePath, Concatenate, CurveTo, CurveToReplicateFinalPoint, CurveToReplicateInitialPoint, EndPath, EndText, FillEvenOddRule, FillNonZeroRule, GRestore, GSave, Invoke, Invoke, LineTo, MoveAndShow, MoveText, MoveTextSetLeading, MoveTo, NextLine, SetCharSpacing, SetGraphicsStateParameters, SetHorizontalTextScaling, SetLineWidth, SetMatrix, SetMoveAndShow, SetNonStrokingCMYKColor, SetNonStrokingColorSpace, SetNonStrokingRGBColor, SetStrokingCMYKColor, SetStrokingColorSpace, SetStrokingRGBColor, SetTextFont, SetTextLeading, SetTextRenderingMode, SetTextRise, SetWordSpacing, ShowText, ShowTextGlyph

public abstract class OperatorProcessor
extends java.lang.Object

Titre : OperatorProcessor

Description : This class is the strategy abstract class in the strategy GOF pattern. After instancated, you must ever call the setContext method to initiamise OPeratorProcessor

Copyright : Copyright (c) 2004

Société : DBGS

Version:
$Revision: 1.3 $
Author:
Huault : huault@free.fr

Field Summary

protected PDFStreamEngine
context
The stream engine processing context.

Constructor Summary

OperatorProcessor()
Constructor.

Method Summary

protected PDFStreamEngine
getContext()
Get the context for processing.
abstract void
process(PDFOperator operator, List arguments)
process the operator.
void
setContext(PDFStreamEngine ctx)
Set the processing context.

Field Details

context

protected PDFStreamEngine context
The stream engine processing context.

Constructor Details

OperatorProcessor

protected OperatorProcessor()
Constructor.

Method Details

getContext

protected PDFStreamEngine getContext()
Get the context for processing.
Returns:
The processing context.

process

public abstract void process(PDFOperator operator,
                             List arguments)
            throws IOException
process the operator.
Parameters:
operator - The operator that is being processed.
arguments - arguments needed by this operator.

setContext

public void setContext(PDFStreamEngine ctx)
Set the processing context.
Parameters:
ctx - The context for processing.