public class I2CPMessageHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LENGTH
This is huge.
|
| Constructor and Description |
|---|
I2CPMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
static I2CPMessage |
readMessage(InputStream in)
Read an I2CPMessage from the stream and return the fully populated object.
|
public static final int MAX_LENGTH
public static I2CPMessage readMessage(InputStream in) throws IOException, I2CPMessageException
in - I2CP input streamIOException - if there is an IO problem reading from the streamI2CPMessageException - if there is a problem handling the particular
message - if it is an unknown type or has improper formatting, etc.