public class FragmentSendStopPacket extends FragmentPIDPacket
FragmentSender
.
Major ID: 254 Minor ID: 7
Constructor and Description |
---|
FragmentSendStopPacket(java.lang.Integer packetID)
Constructs a new FragmentSendStopPacket given the packet ID.
|
Modifier and Type | Method and Description |
---|---|
PacketProtocolInformation |
getProtocol()
Gets the protocol information.
|
static PacketProtocolInformation |
getTheProtocol()
Gets the protocol information statically.
|
void |
loadPayload(byte[] packetData)
Loads the packet payload from save data.
|
byte[] |
savePayload()
Saves the packet payload to a byte array.
|
getPacketID, isValid
public FragmentSendStopPacket(java.lang.Integer packetID)
packetID
- The packet ID.java.lang.IllegalArgumentException
- packetID is less than 0.public PacketProtocolInformation getProtocol()
public static PacketProtocolInformation getTheProtocol()
public byte[] savePayload() throws PacketException
PacketException
- An Exception has occurred.public void loadPayload(byte[] packetData) throws PacketException
packetData
- The packet payload data.java.lang.NullPointerException
- The new store data is null.PacketException
- An Exception has occurred.