This class gets a byte array as it came from a Net, validates it and breaks a part
| Modifier and Type | Field and Description |
|---|---|
| private final DataInputStream | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | JdpPacketReader(byte[]
- packet received from a Net packet)Create packet reader, extract and check magic and version |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: map containing packet entries pair of entries treated as key,valuereturn packet content as a key/value map |
| public String |
| pkt | back to summary |
|---|---|
| private final DataInputStream pkt | |
| pmap | back to summary |
|---|---|
| private Map<String, String> pmap | |
| JdpPacketReader | back to summary |
|---|---|
| public JdpPacketReader(byte[] packet) throws JdpException Create packet reader, extract and check magic and version
| |
| getDiscoveryDataAsMap | back to summary |
|---|---|
| public Map return packet content as a key/value map | |
| getEntry | back to summary |
|---|---|
| public String getEntry() throws EOFException, JdpException Get next entry from packet
| |