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