Class OperatorProcessor
java.lang.Object
org.apache.pdfbox.contentstream.operator.OperatorProcessor
- Direct Known Subclasses:
BeginMarkedContentSequence
,BeginMarkedContentSequenceWithProperties
,BeginText
,Concatenate
,DrawObject
,DrawObject
,EndMarkedContentSequence
,EndText
,GraphicsOperatorProcessor
,MoveText
,MoveTextSetLeading
,NextLine
,Restore
,Save
,SetCharSpacing
,SetColor
,SetFlatness
,SetFontAndSize
,SetGraphicsStateParameters
,SetLineCapStyle
,SetLineDashPattern
,SetLineJoinStyle
,SetLineMiterLimit
,SetLineWidth
,SetMatrix
,SetNonStrokingColorSpace
,SetRenderingIntent
,SetStrokingColorSpace
,SetTextHorizontalScaling
,SetTextLeading
,SetTextRenderingMode
,SetTextRise
,SetWordSpacing
,ShowText
,ShowTextAdjusted
,ShowTextLine
,ShowTextLineAndSpace
,StubOperator
Processes a PDF operator.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkArrayTypesClass
(List<COSBase> operands, Class<?> clazz) Check whether all operands list elements are an instance of a specific class.protected final PDFStreamEngine
Returns the processing context.abstract String
getName()
Returns the name of this operator, e.g.abstract void
Process the operator.void
setContext
(PDFStreamEngine context) Sets the processing context.
-
Field Details
-
context
The processing context.
-
-
Constructor Details
-
OperatorProcessor
protected OperatorProcessor()Creates a new OperatorProcessor.
-
-
Method Details
-
getContext
Returns the processing context.- Returns:
- the processing context
-
setContext
Sets the processing context.- Parameters:
context
- the processing context.
-
process
Process the operator.- Parameters:
operator
- the operator to processoperands
- the operands to use when processing- Throws:
IOException
- if the operator cannot be processed
-
getName
Returns the name of this operator, e.g. "BI". -
checkArrayTypesClass
Check whether all operands list elements are an instance of a specific class.- Parameters:
operands
- The operands list.clazz
- The expected class.- Returns:
- the boolean
-