Class ApplicationDataPacket
- java.lang.Object
-
- jmri.jmrix.ipocs.protocol.packets.Packet
-
- jmri.jmrix.ipocs.protocol.packets.ApplicationDataPacket
-
public class ApplicationDataPacket extends Packet
Packet to send just about anything.- Since:
- 4.21.2
-
-
Field Summary
Fields Modifier and Type Field Description static byteIDENT
-
Constructor Summary
Constructors Constructor Description ApplicationDataPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetData()bytegetId()shortgetxUser()protected voidparseSpecific(java.nio.ByteBuffer buffer)protected byte[]serializeSpecific()voidsetData(java.nio.ByteBuffer data)voidsetxUser(short xUser)
-
-
-
Field Detail
-
IDENT
public static final byte IDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplicationDataPacket
public ApplicationDataPacket()
-
-
Method Detail
-
parseSpecific
protected void parseSpecific(java.nio.ByteBuffer buffer)
- Specified by:
parseSpecificin classPacket
-
serializeSpecific
protected byte[] serializeSpecific()
- Specified by:
serializeSpecificin classPacket
-
getxUser
public short getxUser()
-
setxUser
public void setxUser(short xUser)
-
getData
public java.nio.ByteBuffer getData()
-
setData
public void setData(java.nio.ByteBuffer data)
-
-