Package org.apache.pdfbox.util
Class PDFOperator
- java.lang.Object
-
- org.apache.pdfbox.util.PDFOperator
-
public class PDFOperator extends java.lang.ObjectThis class represents an Operator in the content stream.- Version:
- $Revision: 1.14 $
- Author:
- Ben Litchfield
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getImageData()This is the special case for the ID operator where there are just random bytes inlined the stream.ImageParametersgetImageParameters()This will get the image parameters, this is only valid for BI operators.java.lang.StringgetOperation()This will get the operation that this operator represents.static PDFOperatorgetOperator(java.lang.String operator)This is used to create/cache operators in the system.voidsetImageData(byte[] imageDataArray)This will set the image data, this is only used for the ID operator.voidsetImageParameters(ImageParameters params)This will set the image parameters, this is only valid for BI operators.java.lang.StringtoString()This will print a string rep of this class.
-
-
-
Method Detail
-
getOperator
public static PDFOperator getOperator(java.lang.String operator)
This is used to create/cache operators in the system.- Parameters:
operator- The operator for the system.- Returns:
- The operator that matches the operator keyword.
-
getOperation
public java.lang.String getOperation()
This will get the operation that this operator represents.- Returns:
- The string representation of the operation.
-
toString
public java.lang.String toString()
This will print a string rep of this class.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string rep of this class.
-
getImageData
public byte[] getImageData()
This is the special case for the ID operator where there are just random bytes inlined the stream.- Returns:
- Value of property imageData.
-
setImageData
public void setImageData(byte[] imageDataArray)
This will set the image data, this is only used for the ID operator.- Parameters:
imageDataArray- New value of property imageData.
-
getImageParameters
public ImageParameters getImageParameters()
This will get the image parameters, this is only valid for BI operators.- Returns:
- The image parameters.
-
setImageParameters
public void setImageParameters(ImageParameters params)
This will set the image parameters, this is only valid for BI operators.- Parameters:
params- The image parameters.
-
-