Module org.refcodes.serial
Package org.refcodes.serial
Interface HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B extends HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B>>
- Type Parameters:
B- The builder to return in order to be able to apply multiple build operations.
- Enclosing interface:
- HandshakeMagicBytesAccessor
public static interface HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B extends HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B>>
Provides a builder method for a handshake magic bytes property returning
the builder for applying multiple build operations.
-
Method Summary
Modifier and TypeMethodDescriptionwithHandshakeMagicBytes(byte[] aHandshakeMagicBytes) Sets the magic bytes for the handshake magic bytes property.default BwithHandshakeMagicBytes(String aHandshakeMagicBytes) Sets the magic bytes for the handshake magic bytes property.default BwithHandshakeMagicBytes(String aHandshakeMagicBytes, Charset aEncoding) Sets the magic bytes for the handshake magic bytes property.
-
Method Details
-
withHandshakeMagicBytes
Sets the magic bytes for the handshake magic bytes property.- Parameters:
aHandshakeMagicBytes- The magic bytes to be stored by the handshake magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withHandshakeMagicBytes
Sets the magic bytes for the handshake magic bytes property.- Parameters:
aHandshakeMagicBytes- The magic bytes to be stored by the magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODINGfor converting theStringinto a byte array.- Returns:
- the b
-
withHandshakeMagicBytes
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.- Returns:
- The builder for applying multiple build operations.
-