public class UDPPacketReader.DataReader extends UDPPacketReader.Reader
| Constructor and Description |
|---|
DataReader() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPacketSize() |
long |
readACK(int index) |
ACKBitfield[] |
readACKBitfields() |
boolean |
readACKBitfieldsIncluded() |
int |
readACKCount() |
boolean |
readACKsIncluded() |
boolean |
readECN() |
boolean |
readExtendedDataIncluded() |
int |
readFragmentCount() |
void |
readMessageFragment(int fragmentNum,
byte[] target,
int targetOffset) |
int |
readMessageFragmentNum(int fragmentNum) |
int |
readMessageFragmentSize(int fragmentNum) |
long |
readMessageId(int fragmentNum) |
boolean |
readMessageIsLast(int fragmentNum) |
boolean |
readReplyRequested() |
boolean |
readWantPreviousACKs() |
void |
toRawString(StringBuilder buf) |
String |
toString() |
readExtendedOptionspublic int getPacketSize()
public boolean readACKsIncluded()
public boolean readACKBitfieldsIncluded()
public boolean readECN()
public boolean readWantPreviousACKs()
public boolean readReplyRequested()
public boolean readExtendedDataIncluded()
public int readACKCount()
public long readACK(int index)
public ACKBitfield[] readACKBitfields() throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic int readFragmentCount()
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic long readMessageId(int fragmentNum)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic int readMessageFragmentNum(int fragmentNum)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic boolean readMessageIsLast(int fragmentNum)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic int readMessageFragmentSize(int fragmentNum)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic void readMessageFragment(int fragmentNum,
byte[] target,
int targetOffset)
throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatExceptionpublic void toRawString(StringBuilder buf) throws net.i2p.data.DataFormatException
net.i2p.data.DataFormatException