|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.parameter.BaseParameter
org.eclipse.soda.dk.parameter.BaseKeyParameter
org.eclipse.soda.dk.parameter.NumberParameter
org.eclipse.soda.dk.parameter.SimpleIntegerParameter
org.eclipse.soda.dk.parameter.IntegerParameter
org.eclipse.soda.dk.block.LengthBlock
public class LengthBlock
| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.parameter.SimpleIntegerParameter |
|---|
INTEGER_LENGTH |
| Fields inherited from class org.eclipse.soda.dk.parameter.BaseKeyParameter |
|---|
key |
| Fields inherited from class org.eclipse.soda.dk.parameter.BaseParameter |
|---|
BIT_MASKS, MASKS, SET_MASKS, SET_TOP_MASKS |
| Fields inherited from interface org.eclipse.soda.dk.parameter.service.LengthBlockService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
LengthBlock()
Constructs an instance of this class. |
|
LengthBlock(int length)
Constructs an instance of this class from the specified length parameter. |
|
LengthBlock(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
LengthBlock(java.lang.String key,
int length)
Constructs an instance of this class from the specified key and length parameters. |
|
LengthBlock(java.lang.String key,
int offset,
int length)
Constructs an instance of this class from the specified key, offset and length parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
decodeBytes(byte[] container,
ParameterCursorService cursor)
Decode bytes with the specified container and cursor parameters and return the Object result. |
byte[] |
encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
Encode bytes with the specified container, data and cursor parameters and return the byte[] result. |
int |
getCorrectLength(int length)
Get correct length with the specified length parameter and return the int result. |
boolean |
isConstantParameter()
Gets the constant parameter (boolean) value. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
protected int |
updateLength(int length)
Update length with the specified length parameter and return the int result. |
| Methods inherited from class org.eclipse.soda.dk.parameter.IntegerParameter |
|---|
getLength, getOffset, setLength, setOffset |
| Methods inherited from class org.eclipse.soda.dk.parameter.NumberParameter |
|---|
longValue |
| Methods inherited from class org.eclipse.soda.dk.parameter.BaseKeyParameter |
|---|
getKey, setKey |
| Methods inherited from class org.eclipse.soda.dk.parameter.BaseParameter |
|---|
createCursorChild, decode, decodeEnd, decodeString, decodeValue, decodeValue, encode, encodeData, encodeString, encodeValue, encodeValue, expand, expand, getAbsoluteOffset, getBytes, getDefaultStyle, getLength, getLittleEndianLong, getLong, getOffsetAbsolute, getOffsetDefault, getOffsetLength, getOffsetValue, getUnsignedInteger, getUnsignedLittleEndianLong, getUnsignedLittleEngianLong, getUnsignedLong, isInsert, isInsert, needsCursor, setBits, setBits, setBits, setBitsLittleEngian, setBytes, setBytes, setBytes, setBytesLittleEndian, updateCursor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.parameter.service.LengthBlockService |
|---|
getLength |
| Constructor Detail |
|---|
public LengthBlock()
LengthBlock(int),
LengthBlock(String),
LengthBlock(String,int),
LengthBlock(String,int,int)public LengthBlock(int length)
length - The length (int) parameter.LengthBlock(),
LengthBlock(String),
LengthBlock(String,int),
LengthBlock(String,int,int)public LengthBlock(java.lang.String key)
key - The key (String) parameter.LengthBlock(),
LengthBlock(int),
LengthBlock(String,int),
LengthBlock(String,int,int)
public LengthBlock(java.lang.String key,
int length)
key - The key (String) parameter.length - The length (int) parameter.LengthBlock(),
LengthBlock(int),
LengthBlock(String),
LengthBlock(String,int,int)
public LengthBlock(java.lang.String key,
int offset,
int length)
key - The key (String) parameter.offset - The offset (int) parameter.length - The length (int) parameter.LengthBlock(),
LengthBlock(int),
LengthBlock(String),
LengthBlock(String,int)| Method Detail |
|---|
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
decodeBytes in class SimpleIntegerParametercontainer - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeBytes(byte[],Object,ParameterCursorService)
public byte[] encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
encodeBytes in class NumberParametercontainer - The container (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
byte[]) value.decodeBytes(byte[],ParameterCursorService)public int getCorrectLength(int length)
length - The length (int) parameter.
int) value.public boolean isConstantParameter()
isConstantParameter in interface ParameterServiceisConstantParameter in class BaseParameterboolean) value.protected void updateCursor(ParameterCursorService cursor)
updateCursor in class BaseParametercursor - The cursor (ParameterCursorService) parameter.BaseParameter.needsCursor(),
BaseParameter.updateCursor(ParameterCursorService,int)protected int updateLength(int length)
length - The length (int) parameter.
int) value.getCorrectLength(int)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||