|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.edwards.des.net.packet.Packet
me.edwards.des.net.packet.PacketBlock
public class PacketBlock
Block Packet
This packet is used to transfer Block data between Nodes.
Created on: Nov 3, 2015 at 10:28:29 AM
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class me.edwards.des.net.packet.Packet |
|---|
Packet.PacketTypes |
| Field Summary | |
|---|---|
private Block |
block
|
| Constructor Summary | |
|---|---|
PacketBlock(Block block)
Creates new PacketBlock |
|
PacketBlock(byte[] binary)
Creates new PacketBlock from binary data |
|
| Method Summary | |
|---|---|
byte[] |
getBinary()
Returns the binary payload of this Packet as a byte array. |
Block |
getBlock()
Returns the Block transferred by this Packet |
| Methods inherited from class me.edwards.des.net.packet.Packet |
|---|
getID, lookup, toHex, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Block block
| Constructor Detail |
|---|
public PacketBlock(Block block)
block - Block payloadpublic PacketBlock(byte[] binary)
binary - Packet binary data as byte array| Method Detail |
|---|
public Block getBlock()
Block transferred by this Packet
public byte[] getBinary()
Packet
getBinary in class Packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||