|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.pdf.content.CSOperation
public class CSOperation
Represents the operations that make up a content stream.
The content stream is a sequence of operations, with any operation being a list of operands followed by the operator.
| Field Summary | |
|---|---|
static COSName |
OPERAND_Tx
|
| Constructor Summary | |
|---|---|
CSOperation(byte[] operatorToken,
COSObject[] operands)
|
|
CSOperation(CSOperator operator)
|
|
CSOperation(CSOperator operator,
COSObject[] operands)
|
|
| Method Summary | |
|---|---|
void |
addOperand(COSObject object)
Add an operand at the end of the current operand list. |
Object |
getCache()
|
COSObject |
getOperand(int i)
The operand at index i. |
Iterator |
getOperands()
The iterator over all operands. |
CSOperator |
getOperator()
The operator of the operation. |
byte[] |
getOperatorToken()
|
boolean |
hasOperator()
Answer true if an operator is already defined. |
boolean |
isOpBeginMarkedContent(COSName mark)
true if this is a "begin marked content" operation with
the operand mark (or any operation when mark is null). |
boolean |
isOpEndMarkedContent()
true if this is a "end marked content" operation. |
boolean |
matchesOperator(CSOperator other)
Answer true if this operator's name matches the token
other. |
int |
operandSize()
Answer the number of operands. |
void |
setCache(Object cache)
|
COSObject |
setOperand(int i,
COSObject object)
Set operand at index i to objec. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final COSName OPERAND_Tx
| Constructor Detail |
|---|
public CSOperation(byte[] operatorToken,
COSObject[] operands)
public CSOperation(CSOperator operator)
public CSOperation(CSOperator operator,
COSObject[] operands)
| Method Detail |
|---|
public void addOperand(COSObject object)
object - The new operand to add.public Object getCache()
public COSObject getOperand(int i)
i.
i - The index of the perand in the operand's list.
i.public Iterator getOperands()
public CSOperator getOperator()
public byte[] getOperatorToken()
public boolean hasOperator()
true if an operator is already defined.
true if an operator is already defined.public boolean isOpBeginMarkedContent(COSName mark)
true if this is a "begin marked content" operation with
the operand mark (or any operation when mark is null).
mark - The requested operand to the operation.
true if this is a "begin marked content" operation
with the operand mark.public boolean isOpEndMarkedContent()
true if this is a "end marked content" operation.
true if this is a "end marked content" operationpublic boolean matchesOperator(CSOperator other)
true if this operator's name matches the token
other.
other - token to check against the operators name.
true if this operator's name matches the
token other.public int operandSize()
public void setCache(Object cache)
public COSObject setOperand(int i,
COSObject object)
i to objec.
i - The index of the perand in the operand's list.object - the operand object
i.public String toString()
toString in class Object
|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||