|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.blacktie.jatmibroker.xatmi.Buffer
public abstract class Buffer
This class is used to send and receive data to and from clients to services.
X_OCTET,
X_C_TYPE,
X_COMMON,
Serialized Form| Field Summary | |
|---|---|
static int |
BYTE_SIZE
The agreed size of a byte. |
static int |
DOUBLE_SIZE
The agreed size of a double. |
static int |
FLOAT_SIZE
The agreed size of a float. |
static int |
INT_SIZE
The agreed size of a int. |
static int |
LONG_SIZE
The agreed size of a long. |
static int |
SHORT_SIZE
The agreed size of a short. |
| Method Summary | |
|---|---|
void |
clear()
Clear the content of the buffer |
protected Object |
getAttributeValue(String key,
Class type)
Get the value of an attribute. |
Map<String,Class> |
getFormat()
Get the format of the message. |
int |
getLen()
|
protected byte[] |
getRawData()
Get the raw data, used internally and by the X_OCTET buffer. |
String |
getSubtype()
Get the subtype |
String |
getType()
Get the type |
protected void |
setAttributeValue(String key,
Class type,
Object value)
Set the value. |
protected void |
setRawData(byte[] bytes)
Set the raw data, used by the X_OCTET buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BYTE_SIZE
public static final int LONG_SIZE
public static final int INT_SIZE
public static final int SHORT_SIZE
public static final int FLOAT_SIZE
public static final int DOUBLE_SIZE
| Method Detail |
|---|
public Map<String,Class> getFormat()
public String getType()
public String getSubtype()
public void clear()
protected Object getAttributeValue(String key,
Class type)
throws ConnectionException
key - The keytype - The type
ConnectionException - In case the message is not formatted yet.
protected void setAttributeValue(String key,
Class type,
Object value)
throws ConnectionException
key - The key to settype - The type of the value.value - The value to use
ConnectionException - In case the message is not formatted.protected void setRawData(byte[] bytes)
bytes - The data to use.protected byte[] getRawData()
public int getLen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||