static final class BNSNetworkMessageFilter.FilterRX extends java.lang.Object implements NetworkMessageFilter.FilterRx
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayInputStream |
byteIn
The input end of the pipe to read the message back
|
private java.io.DataInputStream |
dis
The data input stream used to read in parts of the message
|
| Constructor and Description |
|---|
FilterRX()
Creates a new decoding BNSMessageFilter
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
filterRX(byte[] bytes)
Decodes a byte array back into a BNSMessage
|
private java.io.ByteArrayInputStream byteIn
private java.io.DataInputStream dis
public java.lang.Object filterRX(byte[] bytes)
throws java.io.IOException
filterRX in interface NetworkMessageFilter.FilterRxbytes - The bytes to convert back into a BNSMessagejava.io.IOException - Thrown if something goes wrong during the recreation