Module org.refcodes.serial
Package org.refcodes.serial
Interface AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B extends AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B>>
- Type Parameters:
B
- The builder to return in order to be able to apply multiple build operations.
- All Known Implementing Classes:
StopAndWaitPacketInputStream.Builder
,StopAndWaitPacketOutputStream.Builder
,StopAndWaitPacketStreamSectionDecorator.Builder
,StopAndWaitPacketStreamSegmentDecorator.Builder
,StopAndWaitSectionDecorator.Builder
,StopAndWaitSegmentDecorator.Builder
,TransmissionMetrics.Builder
- Enclosing interface:
- AcknowledgeMagicBytesAccessor
public static interface AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B extends AcknowledgeMagicBytesAccessor.AcknowledgeMagicBytesBuilder<B>>
Provides a builder method for a acknowledge magic bytes property
returning the builder for applying multiple build operations.
-
Method Summary
Modifier and TypeMethodDescriptionwithAcknowledgeMagicBytes
(byte[] aAcknowledgeMagicBytes) Sets the magic bytes for the acknowledge magic bytes property.default B
withAcknowledgeMagicBytes
(String aAcknowledgeMagicBytes) Sets the magic bytes for the acknowledge magic bytes property.default B
withAcknowledgeMagicBytes
(String aAcknowledgeMagicBytes, Charset aEncoding) Sets the magic bytes for the acknowledge magic bytes property.
-
Method Details
-
withAcknowledgeMagicBytes
Sets the magic bytes for the acknowledge magic bytes property.- Parameters:
aAcknowledgeMagicBytes
- The magic bytes to be stored by the acknowledge magic bytes property.- Returns:
- The builder for applying multiple build operations.
-
withAcknowledgeMagicBytes
Sets the magic bytes for the acknowledge magic bytes property.- Parameters:
aAcknowledgeMagicBytes
- The magic bytes to be stored by the magic bytes property. UsesTransmissionMetrics.DEFAULT_ENCODING
for converting theString
into a byte array.- Returns:
- the b
-
withAcknowledgeMagicBytes
Sets the magic bytes for the acknowledge magic bytes property.- Parameters:
aAcknowledgeMagicBytes
- 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.
-