|
intarsys PDF library API | |||||||||
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 beeing 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. |
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. |
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(CSOperator operator)
public CSOperation(CSOperator operator, COSObject[] operands)
public CSOperation(byte[] operatorToken, COSObject[] operands)
Method Detail |
---|
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 COSObject getOperand(int i)
i
.
i
- The index of the perand in the operand's list.
i
.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 Iterator getOperands()
public CSOperator getOperator()
public byte[] getOperatorToken()
public void addOperand(COSObject object)
object
- The new operand to add.public boolean hasOperator()
true
if an operator is already defined.
true
if an operator is already defined.public 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 String toString()
toString
in class Object
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |