|
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.Parameter
org.eclipse.soda.dk.parameter.OffsetParameter
public class OffsetParameter
The OffsetParameter class implements the ParameterService interface.
Parameter,
ParameterService| Field Summary | |
|---|---|
static int[] |
MASKS
Define the masks (int) field. |
| Fields inherited from class org.eclipse.soda.dk.parameter.Parameter |
|---|
SET_MASKS, SET_TOP_MASKS |
| Fields inherited from interface org.eclipse.soda.dk.parameter.service.ParameterService |
|---|
ARRAY, ASCII, ASCIIZ, BOOLEAN, BYTE, BYTES, DOUBLE, FLOAT, HEXASCII, HEXSTRING, INSERT, INTEGER, LITTLEENDIAN, LONG, NASCII, NSTRING, NULL, SERVICE_NAME, SHORT, STRING, UNLIMITED, UNSIGNED, USE_CURSOR, USE_CURSOR_INSERT |
| Constructor Summary | |
|---|---|
OffsetParameter(java.lang.String key,
int offset,
int length)
Constructs an instance of this class from the specified key, offset and length parameters. |
|
OffsetParameter(java.lang.String key,
int offset,
int length,
short style)
Constructs an instance of this class from the specified key, offset, length and style parameters. |
|
OffsetParameter(java.lang.String key,
TransformService transform,
int offset,
int length)
Constructs an instance of this class from the specified key, transform, offset and length parameters. |
|
OffsetParameter(java.lang.String key,
TransformService transform,
int offset,
int length,
short style)
Constructs an OffsetParameter object using the input parameter(s). |
|
| Method Summary | |
|---|---|
java.lang.Object |
decodeBytes(byte[] container,
ParameterCursorService cursor)
Decode bytes with the specified container parameter and return the Object result. |
protected java.lang.Object |
decodeMessage(MessageService message,
ParameterCursorService cursor)
Perform the decodeMessage method and return the Object result. |
java.lang.Object |
encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
Encode bytes with the specified container and data parameters and return the Object result. |
MessageService |
encodeMessage(MessageService message,
java.lang.Object value,
int offset,
ParameterCursorService cursor)
Perform the encodeMessage method and return the MessageService result. |
byte[] |
getBytesValue(java.lang.Object value,
int length)
Get bytes value with the specified value and length parameters and return the byte[] result. |
protected int |
getIndex(ParameterCursorService cursor)
Gets the int index property value. |
protected int |
getLength(ParameterCursorService cursor)
Gets the int length property value. |
protected int |
getMask()
Gets the int mask property value. |
protected int |
getOffset(ParameterCursorService cursor)
Gets the int offset property value. |
protected int |
getSize(ParameterCursorService cursor)
Gets the int size property value. |
protected void |
setLength(int length)
Sets the length value. |
protected void |
setOffset(int offset)
Sets the offset value. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
| Methods inherited from class org.eclipse.soda.dk.parameter.Parameter |
|---|
decode, decodeEnd, decodeString, decodeValue, decodeValue, encode, encodeBegin, encodeString, encodeValue, encodeValue, equals, getBytes, getDefaultStyle, getKey, getLong, getStyle, getTransform, getTypeStyle, isArray, isConstantParameter, isInsert, isLittleEndian, isUnsigned, setBits, setBytes, setKey, setStyle, setTransform |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int[] MASKS
| Constructor Detail |
|---|
public OffsetParameter(java.lang.String key,
int offset,
int length)
key - The key (String) parameter.offset - The offset (int) parameter.length - The length (int) parameter.OffsetParameter(String,int,int,short),
OffsetParameter(String,TransformService,int,int),
OffsetParameter(String,TransformService,int,int,short)
public OffsetParameter(java.lang.String key,
int offset,
int length,
short style)
key - The key (String) parameter.offset - The offset (int) parameter.length - The length (int) parameter.style - The style (short) parameter.OffsetParameter(String,int,int),
OffsetParameter(String,TransformService,int,int),
OffsetParameter(String,TransformService,int,int,short)
public OffsetParameter(java.lang.String key,
TransformService transform,
int offset,
int length)
key - The key (String) parameter.transform - The transform (TransformService) parameter.offset - The offset (int) parameter.length - The length (int) parameter.OffsetParameter(String,int,int),
OffsetParameter(String,int,int,short),
OffsetParameter(String,TransformService,int,int,short)
public OffsetParameter(java.lang.String key,
TransformService transform,
int offset,
int length,
short style)
OffsetParameter object using the input parameter(s).
key - The key (String) parameter.transform - The transform (TransformService) parameter.offset - The offset (int) parameter.length - The length (int) parameter.style - The style (short) parameter.OffsetParameter(String,int,int),
OffsetParameter(String,int,int,short),
OffsetParameter(String,TransformService,int,int)| Method Detail |
|---|
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
decodeBytes in class Parametercontainer - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeBytes(byte[],Object,ParameterCursorService)
protected java.lang.Object decodeMessage(MessageService message,
ParameterCursorService cursor)
Object result.
decodeMessage in class Parametermessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeMessage(MessageService,Object,int,ParameterCursorService)
public java.lang.Object encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
encodeBytes in class Parametercontainer - The container (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeBytes(byte[],ParameterCursorService)
public MessageService encodeMessage(MessageService message,
java.lang.Object value,
int offset,
ParameterCursorService cursor)
MessageService result.
encodeMessage in class Parametermessage - The message (MessageService) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeMessage(MessageService,ParameterCursorService)
public byte[] getBytesValue(java.lang.Object value,
int length)
value - The value (Object) parameter.length - The length (int) parameter.
byte[]) value.protected int getIndex(ParameterCursorService cursor)
int index property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.protected int getLength(ParameterCursorService cursor)
int length property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.setLength(int)protected int getMask()
int mask property value.
int) value.protected int getOffset(ParameterCursorService cursor)
int offset property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.setOffset(int)protected int getSize(ParameterCursorService cursor)
int size property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.protected void setLength(int length)
length - The length (int) parameter.getLength(ParameterCursorService)protected void setOffset(int offset)
offset - The offset (int) parameter.getOffset(ParameterCursorService)protected void updateCursor(ParameterCursorService cursor)
updateCursor in class Parametercursor - The cursor (ParameterCursorService) parameter.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||