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 TypeMethodDescriptionvoid
setPacketMagicBytes
(byte[] aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.default void
setPacketMagicBytes
(String aPacketMagicBytes) Sets the magic bytes for the packet magic bytes property.default void
setPacketMagicBytes
(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_ENCODING
for converting theString
into 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
.
-