|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.PacketData
This class contains a packet which is transmitted by the client. It holds both the original packet and the data decoders used to extract the information from it.
ComponentHandler| Field Summary | |
protected java.io.ByteArrayInputStream |
byteData
This is the stream which reads the binary data. |
protected AmberInputStream |
dataDecoder
This is the normal data reader stream which is used by classes to extract meaningful data from the packet. |
protected Packet |
packet
This is the actual packet itself |
| Constructor Summary | |
PacketData()
Default Constructor. |
|
PacketData(Packet packet)
Initialising Constructor. |
|
PacketData(Packet packet,
java.io.ByteArrayInputStream byteData,
AmberInputStream dataDecoder)
Initialising Constructor. |
|
| Method Summary | |
java.io.ByteArrayInputStream |
getByteData()
Gets the data in the following variable: This is the stream which reads the binary data. |
AmberInputStream |
getDataDecoder()
Gets the data in the following variable: This is the normal data reader stream which is used by classes to extract meaningful data from the packet. |
Packet |
getPacket()
Gets the data in the following variable: This is the actual packet itself |
void |
setByteData(java.io.ByteArrayInputStream data)
Sets the data in the following variable: This is the stream which reads the binary data. |
void |
setDataDecoder(AmberInputStream data)
Sets the data in the following variable: This is the normal data reader stream which is used by classes to extract meaningful data from the packet. |
void |
setPacket(Packet data)
Sets the data in the following variable: This is the actual packet itself |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Packet packet
protected java.io.ByteArrayInputStream byteData
protected AmberInputStream dataDecoder
| Constructor Detail |
public PacketData()
public PacketData(Packet packet,
java.io.ByteArrayInputStream byteData,
AmberInputStream dataDecoder)
packet - This is the actual packet itselfbyteData - This is the stream which reads the binary data.dataDecoder - This is the normal data reader stream which is used by classes to extract meaningful data from the packet.public PacketData(Packet packet)
packet - This is the actual packet itself| Method Detail |
public Packet getPacket()
public java.io.ByteArrayInputStream getByteData()
public AmberInputStream getDataDecoder()
public void setPacket(Packet data)
data - Packet containing the data to set the variable to.public void setByteData(java.io.ByteArrayInputStream data)
data - ByteArrayInputStream containing the data to set the variable to.public void setDataDecoder(AmberInputStream data)
data - AmberInputStream containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||