Module org.refcodes.serial
Package org.refcodes.serial
Interface PongMagicBytesAccessor.PongMagicBytesMutator
- All Known Subinterfaces:
PongMagicBytesAccessor.PongMagicBytesProperty
- Enclosing interface:
- PongMagicBytesAccessor
public static interface PongMagicBytesAccessor.PongMagicBytesMutator
Provides a mutator for a pong magic bytes property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetPongMagicBytes(byte[] aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.default voidsetPongMagicBytes(String aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.default voidsetPongMagicBytes(String aPongMagicBytes, Charset aEncoding) Sets the magic bytes for the pong magic bytes property.
-
Method Details
-
setPongMagicBytes
void setPongMagicBytes(byte[] aPongMagicBytes) Sets the magic bytes for the pong magic bytes property.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the pong magic bytes property.
-
setPongMagicBytes
Sets the magic bytes for the pong magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the magic bytes property.
-
setPongMagicBytes
Sets the magic bytes for the pong magic bytes property.- Parameters:
aPongMagicBytes- The magic bytes to be stored by the magic bytes property.aEncoding- The string's bytes are converted using the givenCharset.
-