Module org.refcodes.serial
Package org.refcodes.serial
Interface PingMagicBytesAccessor.PingMagicBytesMutator
- All Known Subinterfaces:
PingMagicBytesAccessor.PingMagicBytesProperty
- Enclosing interface:
- PingMagicBytesAccessor
public static interface PingMagicBytesAccessor.PingMagicBytesMutator
Provides a mutator for a ping magic bytes property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetPingMagicBytes(byte[] aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.default voidsetPingMagicBytes(String aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.default voidsetPingMagicBytes(String aPingMagicBytes, Charset aEncoding) Sets the magic bytes for the ping magic bytes property.
-
Method Details
-
setPingMagicBytes
void setPingMagicBytes(byte[] aPingMagicBytes) Sets the magic bytes for the ping magic bytes property.- Parameters:
aPingMagicBytes- The magic bytes to be stored by the ping magic bytes property.
-
setPingMagicBytes
Sets the magic bytes for the ping magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Parameters:
aPingMagicBytes- The magic bytes to be stored by the magic bytes property.
-
setPingMagicBytes
Sets the magic bytes for the ping magic bytes property.- Parameters:
aPingMagicBytes- The magic bytes to be stored by the magic bytes property.aEncoding- The string's bytes are converted using the givenCharset.
-