public final class Operator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
imageData |
private COSDictionary |
imageParameters |
private static java.util.concurrent.ConcurrentMap<java.lang.String,Operator> |
operators
map for singleton operator objects; use
ConcurrentHashMap for better scalability with multiple threads |
private java.lang.String |
theOperator |
Modifier | Constructor and Description |
---|---|
private |
Operator(java.lang.String aOperator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getImageData()
This is the special case for the ID operator where there are just random
bytes inlined the stream.
|
COSDictionary |
getImageParameters()
This will get the image parameters, this is only valid for BI operators.
|
java.lang.String |
getName()
This will get the name of the operator.
|
static Operator |
getOperator(java.lang.String operator)
This is used to create/cache operators in the system.
|
void |
setImageData(byte[] imageDataArray)
This will set the image data, this is only used for the ID operator.
|
void |
setImageParameters(COSDictionary params)
This will set the image parameters, this is only valid for BI operators.
|
java.lang.String |
toString()
This will print a string rep of this class.
|
private final java.lang.String theOperator
private byte[] imageData
private COSDictionary imageParameters
private static final java.util.concurrent.ConcurrentMap<java.lang.String,Operator> operators
ConcurrentHashMap
for better scalability with multiple threadsprivate Operator(java.lang.String aOperator)
aOperator
- The operator that this object will represent.java.lang.IllegalArgumentException
- if the operator starts with "/".public static Operator getOperator(java.lang.String operator)
operator
- The operator for the system.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getImageData()
public void setImageData(byte[] imageDataArray)
imageDataArray
- New value of property imageData.public COSDictionary getImageParameters()
public void setImageParameters(COSDictionary params)
params
- The image parameters.