|
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.CountBlock
public class CountBlock
| 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.CountBlockService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
CountBlock()
Constructs an instance of this class. |
|
CountBlock(int length)
Constructs an instance of this class from the specified length parameter. |
|
CountBlock(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
CountBlock(java.lang.String key,
int length)
Constructs an instance of this class from the specified key and length parameters. |
|
CountBlock(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 |
getCorrectCount(int count)
Get correct count with the specified count parameter and return the int result. |
boolean |
isConstantParameter()
Gets the constant parameter (boolean) value. |
protected int |
updateCount(int length)
Update count with the specified length parameter and return the int result. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
| 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 |
| Constructor Detail |
|---|
public CountBlock()
CountBlock(int),
CountBlock(String),
CountBlock(String,int),
CountBlock(String,int,int)public CountBlock(int length)
length - The length (int) parameter.CountBlock(),
CountBlock(String),
CountBlock(String,int),
CountBlock(String,int,int)public CountBlock(java.lang.String key)
key - The key (String) parameter.CountBlock(),
CountBlock(int),
CountBlock(String,int),
CountBlock(String,int,int)
public CountBlock(java.lang.String key,
int length)
key - The key (String) parameter.length - The length (int) parameter.CountBlock(),
CountBlock(int),
CountBlock(String),
CountBlock(String,int,int)
public CountBlock(java.lang.String key,
int offset,
int length)
key - The key (String) parameter.offset - The offset (int) parameter.length - The length (int) parameter.CountBlock(),
CountBlock(int),
CountBlock(String),
CountBlock(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 getCorrectCount(int count)
count - The count (int) parameter.
int) value.public boolean isConstantParameter()
isConstantParameter in interface ParameterServiceisConstantParameter in class BaseParameterboolean) value.protected int updateCount(int length)
length - The length (int) parameter.
int) value.getCorrectCount(int)protected void updateCursor(ParameterCursorService cursor)
updateCursor in class BaseParametercursor - The cursor (ParameterCursorService) parameter.BaseParameter.needsCursor(),
BaseParameter.updateCursor(ParameterCursorService,int)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||