public class Command
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
args |
protected int |
currentArg |
protected int |
currentArgBit |
protected int |
currentByte |
Constructor and Description |
---|
Command(int elClass,
int elID,
int argCount,
java.io.DataInput dataIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
alignOnWord()
Align on a word boundary
|
protected void |
BytesFromEnum(int from,
byte[] to) |
protected void |
BytesFromInt(int from,
byte[] to) |
protected void |
BytesFromSignedInt16(int from,
byte[] to) |
void |
cleanUpArguments()
Removes the reference to the arguments, important for commands that have
large arguments such as cell arrays, etc.
|
int |
getElementClass()
Returns the element class for this command
|
int |
getelementID()
Returns the element ID for this command
|
protected void |
info(java.lang.String message) |
protected byte |
makeByte() |
protected char |
makeChar() |
protected int |
makeColorIndex() |
protected int |
makeColorIndex(int precision) |
protected int |
makeDirectColor() |
protected int |
makeEnum() |
protected double |
makeFixedPoint() |
protected java.lang.String |
makeFixedString() |
protected double |
makeFloat32(int i) |
protected double |
makeFloatingPoint() |
protected double |
makeFloatingPoint32() |
protected int |
makeIndex() |
protected int |
makeInt() |
protected int |
makeName() |
protected android.graphics.Point |
makePoint() |
protected double |
makeReal() |
protected SDR |
makeSDR() |
protected int |
makeSignedInt16() |
protected int |
makeSignedInt24() |
protected int |
makeSignedInt32() |
protected int |
makeSignedInt8() |
protected double |
makeSizeSpecification(SpecificationMode specificationMode) |
protected java.lang.String |
makeString() |
protected int |
makeUInt(int precision) |
protected double |
makeVc() |
protected int |
makeVdc() |
static Command |
read(java.io.DataInput in)
Reads one command from the given input stream.
|
protected static Command |
readCommand(java.io.DataInput in,
int ec,
int eid,
int l) |
protected int |
sizeOfDirectColor() |
protected int |
sizeOfEnum() |
protected int |
sizeOfInt() |
protected int |
sizeOfPoint() |
protected int |
sizeOfVdc() |
java.lang.String |
toString() |
protected void |
unimplemented(java.lang.String message) |
protected void |
unsupported(java.lang.String message) |
protected int[] args
protected int currentArg
protected int currentArgBit
protected int currentByte
public Command(int elClass, int elID, int argCount, java.io.DataInput dataIn) throws java.io.IOException
java.io.IOException
public void cleanUpArguments()
public java.lang.String toString()
toString
in class java.lang.Object
protected final java.lang.String makeFixedString()
protected final java.lang.String makeString()
protected final byte makeByte()
protected final char makeChar()
protected final int makeSignedInt8()
protected final int makeSignedInt16()
protected final void BytesFromSignedInt16(int from, byte[] to)
protected final int makeSignedInt24()
protected final int makeSignedInt32()
protected final int makeInt()
protected final int sizeOfInt()
protected final int makeIndex()
protected final int makeName()
protected final void BytesFromInt(int from, byte[] to)
protected final int makeUInt(int precision)
protected final int makeVdc()
protected final int sizeOfVdc()
protected final double makeVc()
protected final double makeReal()
protected final double makeFixedPoint()
protected final double makeFloatingPoint()
protected final double makeFloatingPoint32()
protected final int makeEnum()
protected final void BytesFromEnum(int from, byte[] to)
protected final int sizeOfEnum()
protected final android.graphics.Point makePoint()
protected final int sizeOfPoint()
protected final int makeColorIndex()
protected final int makeColorIndex(int precision)
protected final int makeDirectColor()
protected final int sizeOfDirectColor()
protected final double makeFloat32(int i)
protected final double makeSizeSpecification(SpecificationMode specificationMode)
protected final SDR makeSDR()
protected final void alignOnWord()
public static Command read(java.io.DataInput in) throws java.io.IOException
in
- Where to read the command fromnull
if the end of stream was foundjava.io.IOException
- On I/O errorprotected static Command readCommand(java.io.DataInput in, int ec, int eid, int l) throws java.io.IOException
java.io.IOException
protected final void info(java.lang.String message)
protected final void unsupported(java.lang.String message)
protected final void unimplemented(java.lang.String message)
public int getElementClass()
public int getelementID()