Uses of Interface
org.refcodes.serial.Segment
-
Uses of Segment in org.refcodes.serial
Modifier and TypeClassDescriptionclass
AbstractSegmentDecorator<SEGMENT extends Segment>
Convenience class for easily decorating aSegment
.interface
ArraySegment<SEGMENT extends Segment>
class
AssertMagicBytesSegmentDecorator<DECORATEE extends Segment>
TheAssertMagicBytesSegmentDecorator
extends theMagicBytesSegmentDecorator
and enforces the configured magic bytes to match the received magic bytes (as offromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like).class
BreakerSegmentDecorator<DECORATEE extends Segment>
TheBreakerSegmentDecorator
is aDecoratorSegment
build to test error detection and error correctionTransmission
implementations such as theCrcSegmentDecorator
or theStopAndWaitSegmentDecorator
.class
CipherSegmentDecorator<DECORATEE extends Segment>
ACipherSegmentDecorator
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
CrcSegmentDecorator<DECORATEE extends Segment>
class
FixedSegmentArraySection<ARRAY extends Segment>
AFixedSegmentArraySection
is aSection
consisting ofSegment
elements with each element of the same (uniform) length (in contrast to theSegmentArraySection
).class
InvertibleSegmentDecorator<DECORATEE extends Segment>
AInvertibleSegmentDecorator
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
LengthSegmentDecoratorSegment<DECORATEE extends Segment>
AnLengthSegmentDecoratorSegment
enriches aSegment
with an allocation declaration being prefixed to the enrichedSegment
.class
MagicBytesSegmentDecorator<DECORATEE extends Segment>
Magic bytes are usually found (somewhere) at the beginning of a file or a stream.class
ReadyToReceiveSegmentDecorator<DECORATEE extends Segment>
TheReadyToReceiveSegmentDecorator
class implements a decorator providingReadyToReceiveTransmission
functionality for aSegment
.static final class
ReadyToReceiveSegmentDecorator.Builder<DECORATEE extends Segment>
Builder to buildReadyToReceiveSegmentDecorator
instances .class
ReadyToSendSegmentDecorator<DECORATEE extends Segment>
TheReadyToSendSegmentDecorator
class implements a decorator providingReadyToSendTransmission
functionality for aSegment
.static final class
ReadyToSendSegmentDecorator.Builder<DECORATEE extends Segment>
Builder to buildReadyToSendSegmentDecorator
instances.class
ReceiveSegmentConsumerDaemon<SEGMENT extends Segment>
A daemon handlingSegmentReceiver.onReceiveSegment(Segment, SegmentConsumer)
asynchronous calls.class
ReceiveSegmentResultDaemon<SEGMENT extends Segment>
A daemon handlingSegmentReceiver.onReceiveSegment(Segment)
asynchronous calls.class
SegmentArraySection<ARRAY extends Segment>
ASegmentArraySection
is aSegment
consisting ofSegment
elements with each element of presumably different lengths ( in contrast to theFixedSegmentArraySection
).class
SegmentComposite<CHILD extends Segment>
interface
SegmentConsumer<SEGMENT extends Segment>
ASegmentConsumer
consumes aSegment
and is used to create lambda expressions used for asynchronous callback.class
SegmentResult<SEGMENT extends Segment>
ASegmentResult
instance is issued by theSerialReceiver
to receive aTransmission
's data asynchronously.class
StopAndWaitPacketStreamSegmentDecorator<DECORATEE extends Segment>
AStopAndWaitPacketStreamSegmentDecorator
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
StopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE extends Segment>
Builder to buildStopAndWaitSegmentDecorator
instances.class
StopAndWaitSegmentDecorator<DECORATEE extends Segment>
TheStopAndWaitSegmentDecorator
class implements a decorator providingStopAndWaitTransmission
functionality for aSegment
.static final class
StopAndWaitSegmentDecorator.Builder<DECORATEE extends Segment>
Builder to buildStopAndWaitSegmentDecorator
instances.class
TransmitSegmentConsumerDaemon<SEGMENT extends Segment>
A daemon handlingSegmentTransmitter.doTransmitSegment(Segment, SegmentConsumer)
asynchronous calls.class
TransmitSegmentResultDaemon<SEGMENT extends Segment>
A daemon handlingSegmentTransmitter.doTransmitSegment(Segment)
asynchronous calls.Modifier and TypeInterfaceDescriptioninterface
ArraySegment<SEGMENT extends Segment>
interface
DecoratorSegment<DECORATEE extends Transmission>
TheDecoratorSegment
interface provided means to access a decoratedTransmission
with the means of aSegment
.interface
ThePayloadSegment
interfaces defines aSegment
with a payload.static interface
Default implementation of theSegment
interface providing an implementation of theSegment.SegmentMixin.receiveFrom(InputStream, OutputStream)
method using thefromTransmission(Sequence)
method or thefromTransmission(Sequence, int)
method.Modifier and TypeClassDescriptionclass
AbstractLengthDecoratorSegment<DECORATEE extends Transmission>
TheAbstractLengthDecoratorSegment
decorates a decoratee with a length prefix.class
An abstract implementation of aSegment
with payload.class
AbstractReferenceeLengthSegment<REFERENCEE extends Transmission>
TheAbstractReferenceeLengthSegment
represents a allocated length value as of the referencedTransmission
element's length.class
AbstractSegmentDecorator<SEGMENT extends Segment>
Convenience class for easily decorating aSegment
.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
AnAllocSegmentHead
provides the allocation length for aAllocSegmentBody
.class
class
TheAsciizSegment
is an implementation of aSegment
carrying an ASCII encodedString
as payload, terminated by a 0 ("zero") indicating its end.class
TheAssertMagicBytesSegment
extends theMagicBytesSegment
and enforces the configured magic bytes to match the received magic bytes (as offromTransmission(Sequence)
andSegment.SegmentMixin.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like).class
AssertMagicBytesSegmentDecorator<DECORATEE extends Segment>
TheAssertMagicBytesSegmentDecorator
extends theMagicBytesSegmentDecorator
and enforces the configured magic bytes to match the received magic bytes (as offromTransmission(Sequence)
andAssertMagicBytesSegmentDecorator.receiveFrom(java.io.InputStream, java.io.OutputStream)
or the like).class
TheBooleanSegment
is an implementation of aSegment
carrying in boolean value as value.class
BreakerSegmentDecorator<DECORATEE extends Segment>
TheBreakerSegmentDecorator
is aDecoratorSegment
build to test error detection and error correctionTransmission
implementations such as theCrcSegmentDecorator
or theStopAndWaitSegmentDecorator
.class
TheByteSegment
is an implementation of aSegment
carrying in byte value as payload.class
CipherSegmentDecorator<DECORATEE extends Segment>
ACipherSegmentDecorator
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
AComplexTypeSegment
takes a POJO (a data structure) and creates from its content aSegment
representing the POJO's structure.class
CrcSegmentDecorator<DECORATEE extends Segment>
class
TheDoubleSegment
is an implementation of aSegment
carrying in double value as payload.class
TheDynamicTypeSegment
represents aSegment
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
EnumSegment<E extends Enum<E>>
TheEnumSegment
is an implementation of aSegment
carrying an enumeration value as payload.class
TheFixedLengthSequenceSegment
is aSegment
representing aSequence
of a fixed length (as of the arguments passed to one of its constructors).class
TheFloatSegment
is an implementation of aSegment
carrying in float value as payload.class
TheIntSegment
is an implementation of aSegment
carrying an integer value as payload.class
InvertibleSegmentDecorator<DECORATEE extends Segment>
AInvertibleSegmentDecorator
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
LengthSegment<REFERENCEE extends Transmission>
AnLengthSegment
enriches aSegment
with an allocation declaration computed from the referencedTransmission
.class
LengthSegmentDecoratorSegment<DECORATEE extends Segment>
AnLengthSegmentDecoratorSegment
enriches aSegment
with an allocation declaration being prefixed to the enrichedSegment
.class
TheLongSegment
is an implementation of aSegment
carrying in long value as payload.class
Magic bytes are usually found (somewhere) at the beginning of a file or a stream.class
MagicBytesSegmentDecorator<DECORATEE extends Segment>
Magic bytes are usually found (somewhere) at the beginning of a file or a stream.class
THeMagicBytesSegmentMultiplexer
dispatches a transmission to one of the aggregatedSegment
instances depending on the magic number provided by the transmission.class
class
TheNumberSegment
is an implementation of aSegment
carrying an integer value with a configurable width (in bytes) as payload.class
ReadyToReceiveSegmentDecorator<DECORATEE extends Segment>
TheReadyToReceiveSegmentDecorator
class implements a decorator providingReadyToReceiveTransmission
functionality for aSegment
.class
ReadyToSendSegmentDecorator<DECORATEE extends Segment>
TheReadyToSendSegmentDecorator
class implements a decorator providingReadyToSendTransmission
functionality for aSegment
.class
SegmentComposite<CHILD extends Segment>
class
Convenience class for theNumberSegment
usingTransmissionMetrics
sequence number related properties to configure theSequenceNumberSegment
(being an accordingly configuredNumberSegment
).class
TheShortSegment
is an implementation of aSegment
carrying in short value as payload.class
StopAndWaitPacketStreamSegmentDecorator<DECORATEE extends Segment>
AStopAndWaitPacketStreamSegmentDecorator
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
StopAndWaitSegmentDecorator<DECORATEE extends Segment>
TheStopAndWaitSegmentDecorator
class implements a decorator providingStopAndWaitTransmission
functionality for aSegment
.class
Modifier and TypeFieldDescriptionprotected Segment
AbstractStopAndWaitTransmissionDecorator._acknowledgeSegment
protected Segment
AbstractReadyToSendTransmissionDecorator._clearToSendSegment
protected Segment
PacketInputStream._packetSegment
protected Segment
PacketOutputStream._packetSegment
protected Segment
AbstractReadyToReceiveTransmissionDecorator._readyToReceiveSegment
protected Segment
AbstractReadyToSendTransmissionDecorator._readyToSendSegment
Modifier and TypeMethodDescriptionstatic <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(Class<ARRAY> aSegmentClass) Constructs aSegmentArraySection
with instances of the array being created using the providedClass
instance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the given elements.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
BreakerSegmentDecorator<DECORATEE>SerialSugar.breakerSegment
(DECORATEE aDecoratee, int aBreakNumber) Constructs aBreakerSegmentDecorator
instance with the given decoratee breaking deserialization of the decorated segments by the given number of times.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator.Builder<DECORATEE>ReadyToReceiveSegmentDecorator.builder()
Creates builder to buildReadyToReceiveSegmentDecorator
.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator.Builder<DECORATEE>ReadyToSendSegmentDecorator.builder()
Creates builder to buildReadyToSendSegmentDecorator
.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE>StopAndWaitPacketStreamSegmentDecorator.builder()
Creates builder to buildStopAndWaitPacketStreamSegmentDecorator
.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator.Builder<DECORATEE>StopAndWaitSegmentDecorator.builder()
Creates builder to buildStopAndWaitSegmentDecorator
.static <DECORATEE extends Segment>
CipherSegmentDecorator<DECORATEE>SerialSugar.cipherSegment
(DECORATEE aDecoratee, Cipher aCipher) Constructs aCipher
transmission decorator applying bijective and inverse functions upon the delegated methods.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecorator
wrapping the givenSegment
.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecorator
wrapping the givenSegment
(usingTransmissionMetrics.DEFAULT_ENDIANESS
by default).<SEGMENT extends Segment>
SegmentResult<SEGMENT>AbstractPort.doTransmitSegment
(SEGMENT aSegment) <SEGMENT extends Segment>
voidAbstractPort.doTransmitSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) <SEGMENT extends Segment>
SegmentResult<SEGMENT>AbstractPortDecorator.doTransmitSegment
(SEGMENT aSegment) <SEGMENT extends Segment>
voidAbstractPortDecorator.doTransmitSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) <SEGMENT extends Segment>
SegmentResult<SEGMENT>SegmentTransmitter.doTransmitSegment
(SEGMENT aSegment) <SEGMENT extends Segment>
voidSegmentTransmitter.doTransmitSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(Class<ARRAY> aSegmentClass) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedClass
instance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aFixedSegmentArraySection
with instances of the array being created using the providedTypeFactory
instance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the given elements.static <DECORATEE extends Segment>
InvertibleSegmentDecorator<DECORATEE>SerialSugar.invertibleSegment
(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 Segment>
InvertibleSegmentDecorator<DECORATEE>SerialSugar.invertibleSegment
(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 Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment) Constructs aLengthSegmentDecoratorSegment
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 Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, int aLengthWidth) Constructs aLengthSegmentDecoratorSegment
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 Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
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 Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
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 Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, TransmissionMetrics aTransmissionMetrics) Constructs aLengthSegmentDecoratorSegment
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 Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegment
with the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegment
with magic bytes of the given length to be prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment
(String aAlias, DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Enriches the provided decoratee with magic bytes of the given length to be prefixed.<SEGMENT extends Segment>
SegmentResult<SEGMENT>AbstractPort.onReceiveSegment
(SEGMENT aSegment) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidAbstractPort.onReceiveSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
, passing the result to the callbackSegmentConsumer.onSegment(Segment)
.<SEGMENT extends Segment>
SegmentResult<SEGMENT>AbstractPortDecorator.onReceiveSegment
(SEGMENT aSegment) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidAbstractPortDecorator.onReceiveSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
, passing the result to the callbackSegmentConsumer.onSegment(Segment)
.<SEGMENT extends Segment>
SegmentResult<SEGMENT>SegmentReceiver.onReceiveSegment
(SEGMENT aSegment) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidSegmentReceiver.onReceiveSegment
(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment
'sSequence
data (does not block this thread) and updates theSegment
by invokingfromTransmission(Sequence)
, passing the result to the callbackSegmentConsumer.onSegment(Segment)
.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(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 Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, int aReadyToReceiveRetryNumber, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, byte aReadyToReceiveMagicBytes, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, int aReadyToReceiveRetryNumber, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aCtsTimeoutInMs, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, long aReadyToReceiveTimeoutInMs, SegmentPackager aReadyToReceiveSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToReceiveSegmentDecorator<DECORATEE>SerialSugar.readyToReceiveSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, byte[] aClearToSendMagicBytes) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, int aReadyToSendRetryNumber, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(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 Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, byte[] aReadyToSendMagicBytes, SegmentPackager aReadyToSendSegmentPackager, byte[] aClearToSendMagicBytes, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, int aReadyToSendRetryNumber, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, long aClearToSendTimeoutInMs) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aEnquiryStandbyTimeInMs, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, long aReadyToSendTimeoutInMs, SegmentPackager aReadyToSendSegmentPackager, long aClearToSendTimeoutInMs, SegmentPackager aClearToSendSegmentPackager) Constructs an according flow-control decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator<DECORATEE>SerialSugar.readyToSendSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according control-flow decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
ReadyToSendSegmentDecorator.Builder<DECORATEE>SerialSugar.readyToSendSegmentBuilder()
Constructs a builder to build an accordingReadyToSendSegmentDecorator
instance.<HEADER extends Segment>
voidAbstractPort.receiveSegment
(HEADER aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidAbstractPortDecorator.receiveSegment
(SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidSegmentDestination.receiveSegment
(SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.default <SEGMENT extends Segment>
voidSerialReceiver.receiveSegment
(SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.default <SEGMENT extends Segment>
voidSerialTransceiver.receiveSegment
(SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidAbstractPortDecorator.receiveSegmentWithin
(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.<SEGMENT extends Segment>
voidSegmentReceiver.receiveSegmentWithin
(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.default <SEGMENT extends Segment>
voidSerialReceiver.receiveSegmentWithin
(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment
(and blocks this thread) till all it'sSequence
data has been received and updates theSegment
by invokingfromTransmission(Sequence)
.static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite
(CHILD... aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite
(Collection<CHILD> aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitPacketStreamSegment
(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 Segment>
StopAndWaitPacketStreamSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitPacketStreamSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according packet-stream decorator instance wrapping the givenOutputStream
.static <DECORATEE extends Segment>
StopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE>SerialSugar.stopAndWaitPacketStreamSegmentBuilder()
Constructs a builder to build an accordingStopAndWaitPacketStreamSegmentDecorator
instance.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(DECORATEE aDecoratee) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(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 Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(DECORATEE aDecoratee, SegmentPackager aAckSegmentPackager) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator<DECORATEE>SerialSugar.stopAndWaitSegment
(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs an according stop-and-wait decorator instance wrapping the given decoratee.static <DECORATEE extends Segment>
StopAndWaitSegmentDecorator.Builder<DECORATEE>SerialSugar.stopAndWaitSegmentBuilder()
Constructs a builder to build an accordingStopAndWaitSegmentDecorator
instance.<SEGMENT extends Segment>
voidAbstractPortDecorator.transmitSegment
(SEGMENT aSegment) Transmits aSegment
(and blocks this thread) till all it'sSequence
data (as ofTransmission.toSequence()
) has been sent.<SEGMENT extends Segment>
voidSegmentSource.transmitSegment
(SEGMENT aSegment) Transmits aSegment
(and blocks this thread) till all it'sSequence
data (as ofTransmission.toSequence()
) has been sent.default <SEGMENT extends Segment>
voidSerialTransceiver.transmitSegment
(SEGMENT aSegment) Transmits aSegment
(and blocks this thread) till all it'sSequence
data (as ofTransmission.toSequence()
) has been sent.default <SEGMENT extends Segment>
voidSerialTransmitter.transmitSegment
(SEGMENT aSegment) Transmits aSegment
(and blocks this thread) till all it'sSequence
data (as ofTransmission.toSequence()
) has been sent.Modifier and TypeMethodDescriptionCrcSegmentPackager.toPackaged
(Segment aUnpacked) SegmentPackager.DummySegmentPackager.toPackaged
(Segment aUnpacked) SegmentPackager.toPackaged
(Segment aUnpacked) Modifier and TypeMethodDescriptionstatic <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySection
with the given elements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the givenSegment
elements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySection
with the given elements.static MagicBytesSegmentMultiplexer
SerialSugar.magicBytesSegmentMultiplexer
(int aReadLimit, Segment... aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static MagicBytesSegmentMultiplexer
SerialSugar.magicBytesSegmentMultiplexer
(Segment... aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite
(CHILD... aChildren) Constructs aSegmentComposite
containing the providedSegment
elements.CrcSegmentPackager.toPackaged
(Segment aUnpacked) SegmentPackager.DummySegmentPackager.toPackaged
(Segment aUnpacked) SegmentPackager.toPackaged
(Segment aUnpacked) Modifier and TypeMethodDescriptionstatic MagicBytesSegmentMultiplexer
SerialSugar.magicBytesSegmentMultiplexer
(Collection<Segment> aSegments) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.static MagicBytesSegmentMultiplexer
SerialSugar.magicBytesSegmentMultiplexer
(Collection<Segment> aSegments, int aReadLimit) Constructs aMagicBytesSegmentMultiplexer
containing the providedSegment
elements.ModifierConstructorDescriptionFixedSegmentArraySection
(ARRAY... aSegments) FixedSegmentArraySection
(String aAlias, ARRAY... aSegments) FixedSegmentArraySection
(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) FixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) MagicBytesSegmentMultiplexer
(int aReadLimit, Segment... aSegments) MagicBytesSegmentMultiplexer
(Segment... aSegments) SegmentArraySection
(ARRAY... aSegments) SegmentArraySection
(String aAlias, ARRAY... aSegments) SegmentArraySection
(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) SegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) SegmentComposite
(CHILD... aSegments) ModifierConstructorDescriptionMagicBytesSegmentMultiplexer
(Collection<Segment> aSegments) MagicBytesSegmentMultiplexer
(Collection<Segment> aSegments, int aReadLimit)