public abstract class AbstractBlockMessage extends Object implements IMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected int |
length |
protected int |
offset |
| Constructor and Description |
|---|
AbstractBlockMessage() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
The length of the message (only needed on writing)
The length should include the byte for the message id |
void |
read(InStream inStream)
Read a message from the inputStream
|
void |
write(OutStream outStream)
Writes the message to the output stream
|
Copyright © 2016. All rights reserved.