public class UDPPacketReader.DataReader extends UDPPacketReader.Reader
Constructor and Description |
---|
UDPPacketReader.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() |
readExtendedOptions
public 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 DataFormatException
DataFormatException
public int readFragmentCount() throws DataFormatException
DataFormatException
public long readMessageId(int fragmentNum) throws DataFormatException
DataFormatException
public int readMessageFragmentNum(int fragmentNum) throws DataFormatException
DataFormatException
public boolean readMessageIsLast(int fragmentNum) throws DataFormatException
DataFormatException
public int readMessageFragmentSize(int fragmentNum) throws DataFormatException
DataFormatException
public void readMessageFragment(int fragmentNum, byte[] target, int targetOffset) throws DataFormatException
DataFormatException
public void toRawString(StringBuilder buf) throws DataFormatException
DataFormatException