public class I2CPMessageHandler extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
MAX_LENGTH |
This is huge.
|
| Constructor | Description |
|---|---|
I2CPMessageHandler() |
| Modifier and Type | Method | 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.