|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.dviware.type.AbstractDviCode
public abstract class AbstractDviCode
This is an abstract base class for DVI instructions.
| Field Summary | |
|---|---|
protected static int |
ONE_BYTE_MASK
The constant ONE_BYTE_MASK contains the bit mask for a single byte. |
protected static int |
THREE_BYTE_MASK
The constant THREE_BYTE_MASK contains the bit mask for a triple byte. |
protected static int |
TWO_BYTE_MASK
The constant TWO_BYTE_MASK contains the bit mask for a double byte. |
| Fields inherited from interface org.extex.dviware.type.DviCode |
|---|
POP, PUSH, W0, X0, Y0, Z0 |
| Constructor Summary | |
|---|---|
protected |
AbstractDviCode(java.lang.String name)
Creates a new object. |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Getter for name. |
protected int |
opcode(int baseOpcode,
int value,
java.io.OutputStream stream)
Write an opcode and some unsigned value to the output stream. |
protected int |
opcodeSigned(int baseOpcode,
int value,
java.io.OutputStream stream)
Write an opcode and some signed value to the output stream. |
protected static java.lang.String |
variant(int value)
Determine which variant of a DVI instruction is needed for the operand. |
protected static void |
write2(java.io.OutputStream stream,
int value)
Write two bytes to the output stream. |
protected void |
write3(java.io.OutputStream stream,
int value)
Write three bytes to the output stream. |
protected void |
write4(java.io.OutputStream stream,
int value)
Write four bytes to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.extex.dviware.type.DviCode |
|---|
write |
| Field Detail |
|---|
protected static final int ONE_BYTE_MASK
protected static final int THREE_BYTE_MASK
protected static final int TWO_BYTE_MASK
| Constructor Detail |
|---|
protected AbstractDviCode(java.lang.String name)
name - the name of the dvi instruction| Method Detail |
|---|
protected static java.lang.String variant(int value)
value - the unsigned value
protected static void write2(java.io.OutputStream stream,
int value)
throws java.io.IOException
stream - the output stream to write tovalue - the value
java.io.IOException - in case of an errorpublic java.lang.String getName()
getName in interface DviCode
protected int opcode(int baseOpcode,
int value,
java.io.OutputStream stream)
throws java.io.IOException
baseOpcode - the opcodevalue - the valuestream - the output stream to write to
java.io.IOException - in case of an error
protected int opcodeSigned(int baseOpcode,
int value,
java.io.OutputStream stream)
throws java.io.IOException
baseOpcode - the opcodevalue - the valuestream - the output stream to write to
java.io.IOException - in case of an error
protected void write3(java.io.OutputStream stream,
int value)
throws java.io.IOException
stream - the output stream to write tovalue - the value
java.io.IOException - in case of an error
protected void write4(java.io.OutputStream stream,
int value)
throws java.io.IOException
stream - the output stream to write tovalue - the value
java.io.IOException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||