|
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.BytesParameter
public class BytesParameter
| Field Summary |
|---|
| 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.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 | |
|---|---|
BytesParameter()
Constructs an instance of this class. |
|
BytesParameter(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
BytesParameter(java.lang.String key,
int length)
Constructs an instance of this class from the specified length parameter. |
|
BytesParameter(java.lang.String key,
int offset,
int length)
Constructs an instance of this class from the specified offset and length parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
dataToString(java.lang.Object data)
Data to string with the specified data parameter and return the String result. |
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[] bytes,
java.lang.Object data,
ParameterCursorService cursor)
Encode bytes with the specified bytes, data and cursor parameters and return the byte[] result. |
int |
getLength()
Gets the length (int) value. |
int |
getOffset()
Gets the offset (int) value. |
void |
setLength(int length)
Sets the length value. |
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.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, isConstantParameter, 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 BytesParameter()
BytesParameter(String),
BytesParameter(String,int),
BytesParameter(String,int,int)public BytesParameter(java.lang.String key)
key - The key (String) parameter.BytesParameter(),
BytesParameter(String,int),
BytesParameter(String,int,int)
public BytesParameter(java.lang.String key,
int length)
key - The key (String) parameter.length - The length (int) parameter.BytesParameter(),
BytesParameter(String),
BytesParameter(String,int,int)
public BytesParameter(java.lang.String key,
int offset,
int length)
key - The key (String) parameter.offset - The offset (int) parameter.length - The length (int) parameter.BytesParameter(),
BytesParameter(String),
BytesParameter(String,int)| Method Detail |
|---|
public java.lang.String dataToString(java.lang.Object data)
data - The data (Object) parameter.
String) value.
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
decodeBytes in class BaseParametercontainer - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeBytes(byte[],Object,ParameterCursorService)
public byte[] encodeBytes(byte[] bytes,
java.lang.Object data,
ParameterCursorService cursor)
encodeBytes in class BaseParameterbytes - The bytes (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
byte[]) value.decodeBytes(byte[],ParameterCursorService)public int getLength()
getLength in class BaseParameterint) value.setLength(int)public int getOffset()
getOffset in class BaseParameterint) value.setOffset(int)public void setLength(int length)
length - The length (int) parameter.getLength()public void setOffset(int offset)
offset - The offset (int) parameter.getOffset()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 | |||||||||