net.i2p.data.i2cp
public class I2CPMessageHandler extends Object
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 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.