|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.easybeans.component.smartclient.message.AbsMessage
org.ow2.easybeans.component.smartclient.message.AbsNameBytesMessage
public abstract class AbsNameBytesMessage
Abstract class used for exchanging a name and an array of bytes.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.easybeans.component.smartclient.api.Message |
|---|
HEADER_SIZE, INT_BYTE_SIZE |
| Constructor Summary | |
|---|---|
AbsNameBytesMessage(java.nio.ByteBuffer dataBuffer)
Builds an message with the given bytebuffer. |
|
AbsNameBytesMessage(java.lang.String name,
byte[] bytes)
Builds a new message with the given name and the array of bytes. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Gets the bytes of this message. |
java.lang.String |
getName()
Gets the name of this message. |
abstract byte |
getOpCode()
Gets the OpCode of this message. |
java.nio.ByteBuffer |
getSubMessage()
Gets the content of this message (only this part, not the header). |
| Methods inherited from class org.ow2.easybeans.component.smartclient.message.AbsMessage |
|---|
decode, encode, getMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbsNameBytesMessage(java.lang.String name,
byte[] bytes)
name - the given namebytes - the array of bytes to store.public AbsNameBytesMessage(java.nio.ByteBuffer dataBuffer)
dataBuffer - buffer containing the data to extract.| Method Detail |
|---|
public abstract byte getOpCode()
getOpCode in interface MessagegetOpCode in class AbsMessagepublic java.nio.ByteBuffer getSubMessage()
getSubMessage in class AbsMessagepublic java.lang.String getName()
public byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||