|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolPrimitive
Interface which defines methods for interacting with Primtive at Protocol level.
Primitive is aware of streams and network byte-order which are attributes of a primitive
related to protocol communication.
| Field Summary | |
|---|---|
static int |
BIG_ENDIAN
Data is encoded in BIG endian order (first byte is most significant.) |
static int |
LITTLE_ENDIAN
Data is encoded in LITTLE endian order (first byte is least significant.) |
| Method Summary | |
|---|---|
int |
getByteOrder()
Use the getByteOrder() method to get the byte order encoding of the data. |
void |
setValue(PacketInputStream in)
Sets the value of this primitive from the PacketStream. |
void |
write(PacketOutputStream out)
Writes curent value of this primitive to the PacketStream. |
| Methods inherited from interface com.voytechs.jnetstream.primitive.Primitive |
|---|
getSign, getSize, getValue |
| Field Detail |
|---|
static final int BIG_ENDIAN
static final int LITTLE_ENDIAN
| Method Detail |
|---|
int getByteOrder()
void setValue(PacketInputStream in)
throws java.io.IOException,
EOPacket,
EOPacketStream,
PrimitiveException
out - PacketInputStream to read the value of this primitive from.
java.io.IOException
EOPacket
EOPacketStream
PrimitiveException
void write(PacketOutputStream out)
throws java.io.IOException,
PrimitiveException
out - PacketOutputStream to write the value of this primitive to.
java.io.IOException - If any I/O errors.
PrimitiveException - If any primitive incompatibilities araise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||