Module org.refcodes.serial
Package org.refcodes.serial
Interface HandshakeMagicBytesAccessor.HandshakeMagicBytesMutator
- All Known Subinterfaces:
HandshakeMagicBytesAccessor.HandshakeMagicBytesProperty
- Enclosing interface:
- HandshakeMagicBytesAccessor
public static interface HandshakeMagicBytesAccessor.HandshakeMagicBytesMutator
Provides a mutator for a handshake magic bytes property.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setHandshakeMagicBytes
(byte[] aHandshakeMagicBytes) Sets the magic bytes for the handshake magic bytes property.default void
setHandshakeMagicBytes
(String aHandshakeMagicBytes) Sets the magic bytes for the handshake magic bytes property.default void
setHandshakeMagicBytes
(String aHandshakeMagicBytes, Charset aEncoding) Sets the magic bytes for the handshake magic bytes property.
-
Method Details
-
setHandshakeMagicBytes
void setHandshakeMagicBytes(byte[] aHandshakeMagicBytes) Sets the magic bytes for the handshake magic bytes property.- Parameters:
aHandshakeMagicBytes
- The magic bytes to be stored by the handshake magic bytes property.
-
setHandshakeMagicBytes
Sets the magic bytes for the handshake magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODING
for converting theString
into a byte array.- Parameters:
aHandshakeMagicBytes
- The magic bytes to be stored by the magic bytes property.
-
setHandshakeMagicBytes
Sets the magic bytes for the handshake magic bytes property.- Parameters:
aHandshakeMagicBytes
- The magic bytes to be stored by the magic bytes property.aEncoding
- The string's bytes are converted using the givenCharset
.
-