Uses of Interface
org.refcodes.serial.Section
-
Uses of Section in org.refcodes.serial
Modifier and TypeClassDescriptionclass
AbstractSectionDecorator<SECTION extends Section>
Convenience class for easily decorating aSection
.class
AllocSectionDecoratorSegment<DECORATEE extends Section>
AnAllocSectionDecoratorSegment
enriches anSection
with an allocation declaration being prefixed to the enrichedSection
.class
AllocSegmentBody<DECORATEE extends Section>
AnAllocSegmentBody
provides anSegment
with an allocation length.class
AssertMagicBytesSectionDecorator<DECORATEE extends Section>
TheAssertMagicBytesSectionDecorator
extends theMagicBytesSectionDecorator
and enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like).class
BreakerSectionDecorator<DECORATEE extends Section>
TheBreakerSectionDecorator
is aDecoratorSection
build to test error detection and error correctionTransmission
implementations such as theCrcSectionDecorator
or theStopAndWaitSectionDecorator
.class
CipherSectionDecorator<DECORATEE extends Section>
ACipherSectionDecorator
is a transmission applying anInvertible
on outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)
or the like) and the inverse function on any incoming bytes.class
CrcSectionDecorator<DECORATEE extends Section>
class
InvertibleSectionDecorator<DECORATEE extends Section>
AInvertibleSectionDecorator
is a transmission applying anInvertible
on outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)
or the like) and the inverse function on any incoming bytes.class
MagicBytesSectionDecorator<DECORATEE extends Section>
Magic bytes are usually found (somewhere) at the beginning of a file or a stream.class
ReadyToReceiveSectionDecorator<DECORATEE extends Section>
TheReadyToReceiveSectionDecorator
class implements a decorator providingReadyToReceiveTransmission
functionality for aSegment
.static final class
ReadyToReceiveSectionDecorator.Builder<DECORATEE extends Section>
Builder to buildReadyToReceiveSectionDecorator
.class
ReadyToSendSectionDecorator<DECORATEE extends Section>
TheReadyToSendSectionDecorator
class implements a decorator providingReadyToSendTransmission
functionality for aSegment
.static final class
ReadyToSendSectionDecorator.Builder<DECORATEE extends Section>
Builder to buildReadyToSendSectionDecorator
.class
SectionComposite<ALLOC extends AllocSectionDecoratorSegment<CHILD>,
CHILD extends Section> ASectionComposite
is aSection
consisting ofSection
elements of a variable length each: EachSection
element in the composite need not be of the same size.class
StopAndWaitPacketStreamSectionDecorator<DECORATEE extends Section>
AStopAndWaitPacketStreamSectionDecorator
chunks any outgoing stream (OutputStream
) into blocks of definite length and reassembles any incoming streams (InputStream
) from blocks of definite size into a contiguous stream.static final class
StopAndWaitPacketStreamSectionDecorator.Builder<DECORATEE extends Section>
Builder to buildStopAndWaitSegmentDecorator
.class
StopAndWaitSectionDecorator<DECORATEE extends Section>
TheStopAndWaitSectionDecorator
class implements a decorator providingStopAndWaitTransmission
functionality for aSection
.static final class
StopAndWaitSectionDecorator.Builder<DECORATEE extends Section>
Builder to buildStopAndWaitSegmentDecorator
.Modifier and TypeInterfaceDescriptioninterface
ArraySection<ARRAY extends Transmission>
interface
DecoratorSection<DECORATEE extends Transmission>
TheDecoratorSection
interface provided means to access a decoratedTransmission
with the means of aSection
.interface
ThePayloadSection
interfaces defines aSection
with a payload.static interface
Default implementation of theSection
interface providing an implementation of theSection.SectionMixin.receiveFrom(InputStream, int, OutputStream)
method using thefromTransmission(Sequence, int)
method or thefromTransmission(Sequence, int, int)
method..Modifier and TypeClassDescriptionclass
An abstract implementation of aSection
with payload.class
AbstractSectionDecorator<SECTION extends Section>
Convenience class for easily decorating aSection
.class
AssertMagicBytesSectionDecorator<DECORATEE extends Section>
TheAssertMagicBytesSectionDecorator
extends theMagicBytesSectionDecorator
and enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like).class
TheBooleanArraySection
is an implementation of aSection
carrying a boolean array as payload.class
BreakerSectionDecorator<DECORATEE extends Section>
TheBreakerSectionDecorator
is aDecoratorSection
build to test error detection and error correctionTransmission
implementations such as theCrcSectionDecorator
or theStopAndWaitSectionDecorator
.class
TheByteArraySection
is an implementation of aSection
carrying a byte array as payload.class
TheCharArraySection
is an implementation of aPayloadSection
carrying a char array as payload.class
TheCharSection
is an implementation of aSection
carrying a char value as payload.class
CipherSectionDecorator<DECORATEE extends Section>
ACipherSectionDecorator
is a transmission applying anInvertible
on outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)
or the like) and the inverse function on any incoming bytes.class
CrcSectionDecorator<DECORATEE extends Section>
class
TheDoubleArraySection
is an implementation of aSection
carrying a double array as payload.class
TheDynamicTypeSection
represents aSection
which's internal raw data is created from provided types at runtime and which's internal raw data is used to create provided types at runtime.class
AFileSection
represents aFile
on the file system and can be used to receive or to transmit aFile
.class
FixedSegmentArraySection<ARRAY extends Segment>
AFixedSegmentArraySection
is aSection
consisting ofSegment
elements with each element of the same (uniform) length (in contrast to theSegmentArraySection
).class
TheFloatArraySection
is an implementation of aSection
carrying a float array as payload.class
TheIntArraySection
is an implementation of aSection
carrying an integer array as payload.class
InvertibleSectionDecorator<DECORATEE extends Section>
AInvertibleSectionDecorator
is a transmission applying anInvertible
on outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)
or the like) and the inverse function on any incoming bytes.class
TheLongArraySection
is an implementation of aSection
carrying a long array as payload.class
MagicBytesSectionDecorator<DECORATEE extends Section>
Magic bytes are usually found (somewhere) at the beginning of a file or a stream.class
THeMagicBytesSectionMultiplexer
dispatches a transmission to one of the aggregatedSection
instances depending on the magic number provided by the transmission.class
class
ReadyToReceiveSectionDecorator<DECORATEE extends Section>
TheReadyToReceiveSectionDecorator
class implements a decorator providingReadyToReceiveTransmission
functionality for aSegment
.class
ReadyToSendSectionDecorator<DECORATEE extends Section>
TheReadyToSendSectionDecorator
class implements a decorator providingReadyToSendTransmission
functionality for aSegment
.class
SectionComposite<ALLOC extends AllocSectionDecoratorSegment<CHILD>,
CHILD extends Section> ASectionComposite
is aSection
consisting ofSection
elements of a variable length each: EachSection
element in the composite need not be of the same size.class
SegmentArraySection<ARRAY extends Segment>
ASegmentArraySection
is aSegment
consisting ofSegment
elements with each element of presumably different lengths ( in contrast to theFixedSegmentArraySection
).class
class
TheShortArraySection
is an implementation of aSection
carrying a short array as payload.class
StopAndWaitPacketStreamSectionDecorator<DECORATEE extends Section>
AStopAndWaitPacketStreamSectionDecorator
chunks any outgoing stream (OutputStream
) into blocks of definite length and reassembles any incoming streams (InputStream
) from blocks of definite size into a contiguous stream.class
StopAndWaitSectionDecorator<DECORATEE extends Section>
TheStopAndWaitSectionDecorator
class implements a decorator providingStopAndWaitTransmission
functionality for aSection
.class
class
Modifier and TypeMethodDescriptionstatic <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>SerialSugar.allocSegment
(DECORATEE aDecoratee) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>SerialSugar.allocSegment
(DECORATEE aDecoratee, int aLengthWidth) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>SerialSugar.allocSegment
(DECORATEE aDecoratee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>SerialSugar.allocSegment
(DECORATEE aDecoratee, org.refcodes.numerical.Endianess aEndianess) Constructs aAllocSectionDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Section>
AllocSectionDecoratorSegment<DECORATEE>SerialSugar.allocSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an accordingAllocSectionDecoratorSegment
instance.static <DECORATEE extends Section>
AllocSegmentBody<DECORATEE>SerialSugar.allocSegmentBody
(DECORATEE aDecoratee) Constructs the decorator with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
AssertMagicBytesSectionDecorator<DECORATEE>SerialSugar.assertMagicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
BreakerSectionDecorator<DECORATEE>SerialSugar.breakerSection
(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSectionDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator.Builder<DECORATEE>ReadyToReceiveSectionDecorator.builder()
Creates builder to buildReadyToReceiveSectionDecorator
.static <DECORATEE extends Section>
ReadyToSendSectionDecorator.Builder<DECORATEE>ReadyToSendSectionDecorator.builder()
Creates builder to buildReadyToSendSectionDecorator
.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator.Builder<DECORATEE>StopAndWaitPacketStreamSectionDecorator.builder()
Creates builder to buildStopAndWaitPacketStreamSectionDecorator
.static <DECORATEE extends Section>
StopAndWaitSectionDecorator.Builder<DECORATEE>StopAndWaitSectionDecorator.builder()
Creates builder to buildStopAndWaitSegmentDecorator
.static <DECORATEE extends Section>
CipherSectionDecorator<DECORATEE>SerialSugar.cipherSection
(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcPrefixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSectionDecorator
wrapping the givenSection
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
CrcSectionDecorator<DECORATEE>SerialSugar.crcSuffixSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSectionDecorator
wrapping the givenSection
.static <DECORATEE extends Section>
InvertibleSectionDecorator<DECORATEE>SerialSugar.invertibleSection
(DECORATEE aDecoratee, org.refcodes.numerical.BijectiveFunction<Byte, Byte> aBijectiveFunction, org.refcodes.numerical.InverseFunction<Byte, Byte> aInverseFunction) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Section>
InvertibleSectionDecorator<DECORATEE>SerialSugar.invertibleSection
(DECORATEE aDecoratee, org.refcodes.numerical.Invertible<Byte, Byte> aInvertible) Constructs an invertible transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte[] aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToReceiveSectionDecorator<DECORATEE>SerialSugar.readyToReceiveSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSectionPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSectionPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSectionPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator<DECORATEE>SerialSugar.readyToSendSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
ReadyToSendSectionDecorator.Builder<DECORATEE>SerialSugar.readyToSendSectionBuilder()
Constructs a builder to build an accordingReadyToSendSectionDecorator
instance.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator<DECORATEE>SerialSugar.stopAndWaitPacketStreamSection
(DECORATEE aDecoratee, int aBlockSize, int aPacketLengthWidth, byte[] aPacketMagicBytes, byte[] aLastPacketMagicBytes, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, SegmentPackager aPacketSegmentPackager, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator<DECORATEE>SerialSugar.stopAndWaitPacketStreamSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Section>
StopAndWaitPacketStreamSectionDecorator.Builder<DECORATEE>SerialSugar.stopAndWaitPacketStreamSectionBuilder()
Constructs a builder to build an accordingStopAndWaitPacketStreamSectionDecorator
instance.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, int aSequenceNumberInitValue, int aSequenceNumberWidth, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aSequenceNumberConcatenateMode, byte[] aAcknowledgeMagicBytes, int aAckRetryNumber, long aAckTimeoutInMs, SegmentPackager aAckSegmentPackager, org.refcodes.numerical.Endianess aEndianess) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator<DECORATEE>SerialSugar.stopAndWaitSection
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Section>
StopAndWaitSectionDecorator.Builder<DECORATEE>SerialSugar.stopAndWaitSectionBuilder()
Constructs a builder to build an accordingStopAndWaitSectionDecorator
instance.Modifier and TypeMethodDescriptionstatic MagicBytesSectionMultiplexer
SerialSugar.magicBytesSectionMultiplexer
(int aReadLimit, Section... aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSectionMultiplexer
SerialSugar.magicBytesSectionMultiplexer
(Section... aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.protected void
SectionComposite.setChildren
(CHILD[] aChildren) Hook for easily setting the children.Modifier and TypeMethodDescriptionstatic MagicBytesSectionMultiplexer
SerialSugar.magicBytesSectionMultiplexer
(Collection<Section> aSections) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.static MagicBytesSectionMultiplexer
SerialSugar.magicBytesSectionMultiplexer
(Collection<Section> aSections, int aReadLimit) Constructs aMagicBytesSectionMultiplexer
containing the providedSection
elements.ModifierConstructorDescriptionMagicBytesSectionMultiplexer
(int aReadLimit, Section... aSections) MagicBytesSectionMultiplexer
(Section... aSections) SectionComposite
(Class<ALLOC> aAllocSegmentClass, Class<CHILD> aSegmentClass, CHILD... aSegmentArray) Constructs aSectionComposite
containing the providedAllocSectionDecoratorSegment
elements.SectionComposite
(org.refcodes.factory.TypeFactory<ALLOC> aAllocSegmentFactory, org.refcodes.factory.TypeFactory<CHILD> aSegmentFactory, CHILD... aSegmentArray) Constructs aSectionComposite
containing the providedAllocSectionDecoratorSegment
elements and using the provided factories for creatingSegment
andSection
instances.ModifierConstructorDescriptionMagicBytesSectionMultiplexer
(Collection<Section> aSections) MagicBytesSectionMultiplexer
(Collection<Section> aSections, int aReadLimit)