|
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.StreamParameter
public class StreamParameter
| Field Summary | |
|---|---|
static int[] |
MASKS
Define the masks (int[]) constant. |
static int[] |
SET_MASKS
Define the set masks (int[]) constant. |
static int[] |
SET_TOP_MASKS
Define the set top masks (int[]) constant. |
| 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 | |
|---|---|
StreamParameter(java.lang.String key)
Constructs an instance of this class. |
|
StreamParameter(java.lang.String key,
short style)
Constructs an instance of this class from the specified key and style parameters. |
|
StreamParameter(java.lang.String key,
short style,
short externalStyle)
Constructs an instance of this class from the specified key, style and external style parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
decode(java.lang.Object container)
Decode with the specified container parameter and return the Object result. |
java.lang.Object |
decodeBytes(byte[] container,
ParameterCursorService cursor)
Decode bytes with the specified container parameter and return the Object result. |
java.lang.Object |
decodeEnd(java.lang.Object object)
Decode end with the specified object parameter and return the Object result. |
protected java.lang.Object |
decodeMessage(MessageService message,
ParameterCursorService cursor)
Decode message with the specified message and cursor parameters and return the Object result. |
java.lang.Object |
decodeString(java.lang.String container,
ParameterCursorService cursor)
Decode string with the specified container parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message)
Decode value with the specified message parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message,
ParameterCursorService cursor)
Decode value with the specified message and cursor parameters and return the Object result. |
java.lang.Object |
encode(java.lang.Object container,
java.lang.Object data)
Encode with the specified container and data parameters and return the Object result. |
java.lang.Object |
encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
Encode string with the specified container and data parameters and return the Object result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value)
Encode value with the specified message and value parameters and return the MessageService result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
Encode value with the specified message, value and cursor parameters and return the MessageService result. |
static byte[] |
getBytes(byte[] bytes,
int offset,
int length)
Get bytes with the specified bytes, offset and length parameters and return the byte[] result. |
static short |
getDefaultStyle()
Gets the default style (short) value. |
short |
getExternalStyle()
Gets the external style (short) value. |
short |
getExternalTypeStyle()
Gets the external type style (short) value. |
java.lang.String |
getKey()
Gets the key (String) value. |
protected int |
getLength(ParameterCursorService cursor)
Gets the int length property value. |
static long |
getLong(byte[] bytes,
int offset,
int length)
Get long with the specified bytes, offset and length parameters and return the long result. |
protected int |
getOffset(ParameterCursorService cursor)
Gets the int offset property value. |
int |
getOffsetDefault()
Gets the offset default (int) value. |
int |
getOffsetLength()
Gets the offset length (int) value. |
short |
getStyle()
Gets the short style property value. |
TransformService |
getTransform()
Gets the transform (TransformService) value. |
short |
getTypeStyle()
Gets the short typeStyle property value. |
boolean |
isArray()
Gets the array (boolean) value. |
boolean |
isConstantParameter()
Gets the constant parameter (boolean) value. |
boolean |
isInsert()
Gets the boolean insert property value. |
boolean |
isLittleEndian()
Gets the boolean littleEndian property value. |
boolean |
isUnsigned()
Gets the boolean unsigned property value. |
static void |
setBits(byte[] bytes,
int offset,
int length,
long value)
Set bits with the specified bytes, offset, length and value parameters. |
static void |
setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
Get bytes with the specified bytes, offset and length parameters and return the byte[] result. |
void |
setExternalStyle(short style)
Sets the external style value. |
void |
setKey(java.lang.String key)
Sets the key value. |
void |
setStyle(short style)
Sets the style value. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int[] MASKS
public static final int[] SET_MASKS
public static final int[] SET_TOP_MASKS
| Constructor Detail |
|---|
public StreamParameter(java.lang.String key)
key - The key (String) parameter.StreamParameter(String,short),
StreamParameter(String,short,short)
public StreamParameter(java.lang.String key,
short style)
key - The key (String) parameter.style - The style (short) parameter.StreamParameter(String),
StreamParameter(String,short,short)
public StreamParameter(java.lang.String key,
short style,
short externalStyle)
key - The key (String) parameter.style - The style (short) parameter.externalStyle - The external style (short) parameter.StreamParameter(String),
StreamParameter(String,short)| Method Detail |
|---|
public static byte[] getBytes(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.setBytes(byte[],int,int,byte[]),
decodeBytes(byte[],ParameterCursorService)public static short getDefaultStyle()
short) value.
public static long getLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static void setBits(byte[] bytes,
int offset,
int length,
long value)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.
public static void setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.getBytes(byte[],int,int),
decodeBytes(byte[],ParameterCursorService)public java.lang.Object decode(java.lang.Object container)
decode in interface DataParameterServicecontainer - The container (Object) parameter.
Object) value.
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
container - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[])public java.lang.Object decodeEnd(java.lang.Object object)
object - The object (Object) parameter.
Object) value.
protected java.lang.Object decodeMessage(MessageService message,
ParameterCursorService cursor)
message - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.
public java.lang.Object decodeString(java.lang.String container,
ParameterCursorService cursor)
container - The container (String) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeString(String,Object,ParameterCursorService)public java.lang.Object decodeValue(MessageService message)
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.
Object) value.decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
public java.lang.Object decodeValue(MessageService message,
ParameterCursorService cursor)
throws java.lang.NumberFormatException
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.
java.lang.NumberFormatException - Number Format Exception.decodeValue(MessageService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
public java.lang.Object encode(java.lang.Object container,
java.lang.Object data)
encode in interface DataParameterServicecontainer - The container (Object) parameter.data - The data (Object) parameter.
Object) value.
public java.lang.Object encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
container - The container (String) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeString(String,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value)
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object)public short getExternalStyle()
short) value.setExternalStyle(short)public short getExternalTypeStyle()
short) value.public java.lang.String getKey()
getKey in interface ParameterServiceString) value.setKey(String)protected int getLength(ParameterCursorService cursor)
int length property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.getOffsetLength()protected int getOffset(ParameterCursorService cursor)
int offset property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.public int getOffsetDefault()
int) value.public int getOffsetLength()
int) value.public short getStyle()
short style property value.
Return the number of bytes (not bit length) of the parameter.
short) value.getDefaultStyle(),
getExternalStyle(),
getExternalTypeStyle(),
getTypeStyle(),
setExternalStyle(short),
setStyle(short)public TransformService getTransform()
TransformService) value.public short getTypeStyle()
short typeStyle property value.
Return the number of bytes (not bit length) of the parameter.
short) value.getExternalTypeStyle()public boolean isArray()
boolean) value.public boolean isConstantParameter()
isConstantParameter in interface ParameterServiceboolean) value.public boolean isInsert()
boolean insert property value.
boolean) value.public boolean isLittleEndian()
boolean littleEndian property value.
boolean) value.public boolean isUnsigned()
boolean unsigned property value.
Return the number of bytes (not bit length) of the parameter.
boolean) value.public void setExternalStyle(short style)
style - The style (short) parameter.getExternalStyle()public void setKey(java.lang.String key)
key - The key (String) parameter.getKey()public void setStyle(short style)
style - The style (short) parameter.getDefaultStyle(),
getExternalStyle(),
getExternalTypeStyle(),
getStyle(),
getTypeStyle(),
setExternalStyle(short)protected void updateCursor(ParameterCursorService cursor)
cursor - 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 | |||||||||