Module org.refcodes.serial
Package org.refcodes.serial
Interface PacketMagicBytesAccessor.PacketMagicBytesMutator
- All Known Subinterfaces:
PacketMagicBytesAccessor.PacketMagicBytesProperty
- Enclosing interface:
- PacketMagicBytesAccessor
public static interface PacketMagicBytesAccessor.PacketMagicBytesMutator
Provides a mutator for a packet magic bytes property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetPacketMagicBytes(byte[] aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.default voidsetPacketMagicBytes(String aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.default voidsetPacketMagicBytes(String aPacketMagicBytes, Charset aEncoding) Sets the magic bytes for the packet magic bytes property.
-
Method Details
-
setPacketMagicBytes
void setPacketMagicBytes(byte[] aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.- Parameters:
aPacketMagicBytes- The magic bytes to be stored by the packet magic bytes property.
-
setPacketMagicBytes
Sets the magic bytes for the packet magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Parameters:
aPacketMagicBytes- The magic bytes to be stored by the magic bytes property.
-
setPacketMagicBytes
Sets the magic bytes for the packet magic bytes property.- Parameters:
aPacketMagicBytes- The magic bytes to be stored by the magic bytes property.aEncoding- The string's bytes are converted using the givenCharset.
-