Uses of Interface
org.refcodes.serial.Segment
-
Uses of Segment in org.refcodes.serial
Classes in org.refcodes.serial with type parameters of type SegmentModifier and TypeClassDescriptionclassAbstractSegmentDecorator<SEGMENT extends Segment>Convenience class for easily decorating aSegment.interfaceArraySegment<SEGMENT extends Segment>classAssertMagicBytesSegmentDecorator<DECORATEE extends Segment>TheAssertMagicBytesSegmentDecoratorextends theMagicBytesSegmentDecoratorand 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).classBreakerSegmentDecorator<DECORATEE extends Segment>TheBreakerSegmentDecoratoris aDecoratorSegmentbuild to test error detection and error correctionTransmissionimplementations such as theCrcSegmentDecoratoror theStopAndWaitSegmentDecorator.classCipherSegmentDecorator<DECORATEE extends Segment>ACipherSegmentDecoratoris a transmission applying anInvertibleon outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)or the like) and the inverse function on any incoming bytes.classCrcSegmentDecorator<DECORATEE extends Segment>classFixedSegmentArraySection<ARRAY extends Segment>AFixedSegmentArraySectionis aSectionconsisting ofSegmentelements with each element of the same (uniform) length (in contrast to theSegmentArraySection).classInvertibleSegmentDecorator<DECORATEE extends Segment>AInvertibleSegmentDecoratoris a transmission applying anInvertibleon outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)or the like) and the inverse function on any incoming bytes.classLengthSegmentDecoratorSegment<DECORATEE extends Segment>AnLengthSegmentDecoratorSegmentenriches aSegmentwith an allocation declaration being prefixed to the enrichedSegment.classMagicBytesSegmentDecorator<DECORATEE extends Segment>Magic bytes are usually found (somewhere) at the beginning of a file or a stream.classReadyToReceiveSegmentDecorator<DECORATEE extends Segment>TheReadyToReceiveSegmentDecoratorclass implements a decorator providingReadyToReceiveTransmissionfunctionality for aSegment.static final classReadyToReceiveSegmentDecorator.Builder<DECORATEE extends Segment>Builder to buildReadyToReceiveSegmentDecoratorinstances .classReadyToSendSegmentDecorator<DECORATEE extends Segment>TheReadyToSendSegmentDecoratorclass implements a decorator providingReadyToSendTransmissionfunctionality for aSegment.static final classReadyToSendSegmentDecorator.Builder<DECORATEE extends Segment>Builder to buildReadyToSendSegmentDecoratorinstances.classReceiveSegmentConsumerDaemon<SEGMENT extends Segment>A daemon handlingSegmentReceiver.onReceiveSegment(Segment, SegmentConsumer)asynchronous calls.classReceiveSegmentResultDaemon<SEGMENT extends Segment>A daemon handlingSegmentReceiver.onReceiveSegment(Segment)asynchronous calls.classSegmentArraySection<ARRAY extends Segment>ASegmentArraySectionis aSegmentconsisting ofSegmentelements with each element of presumably different lengths ( in contrast to theFixedSegmentArraySection).classSegmentComposite<CHILD extends Segment>interfaceSegmentConsumer<SEGMENT extends Segment>ASegmentConsumerconsumes aSegmentand is used to create lambda expressions used for asynchronous callback.classSegmentResult<SEGMENT extends Segment>ASegmentResultinstance is issued by theSerialReceiverto receive aTransmission's data asynchronously.classStopAndWaitPacketStreamSegmentDecorator<DECORATEE extends Segment>AStopAndWaitPacketStreamSegmentDecoratorchunks 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 classStopAndWaitPacketStreamSegmentDecorator.Builder<DECORATEE extends Segment>Builder to buildStopAndWaitSegmentDecoratorinstances.classStopAndWaitSegmentDecorator<DECORATEE extends Segment>TheStopAndWaitSegmentDecoratorclass implements a decorator providingStopAndWaitTransmissionfunctionality for aSegment.static final classStopAndWaitSegmentDecorator.Builder<DECORATEE extends Segment>Builder to buildStopAndWaitSegmentDecoratorinstances.classTransmitSegmentConsumerDaemon<SEGMENT extends Segment>A daemon handlingSegmentTransmitter.doTransmitSegment(Segment, SegmentConsumer)asynchronous calls.classTransmitSegmentResultDaemon<SEGMENT extends Segment>A daemon handlingSegmentTransmitter.doTransmitSegment(Segment)asynchronous calls.Subinterfaces of Segment in org.refcodes.serialModifier and TypeInterfaceDescriptioninterfaceArraySegment<SEGMENT extends Segment>interfaceDecoratorSegment<DECORATEE extends Transmission>TheDecoratorSegmentinterface provided means to access a decoratedTransmissionwith the means of aSegment.interfaceThePayloadSegmentinterfaces defines aSegmentwith a payload.static interfaceDefault implementation of theSegmentinterface providing an implementation of theSegment.SegmentMixin.receiveFrom(InputStream, OutputStream)method using thefromTransmission(Sequence)method or thefromTransmission(Sequence, int)method.Classes in org.refcodes.serial that implement SegmentModifier and TypeClassDescriptionclassAbstractLengthDecoratorSegment<DECORATEE extends Transmission>TheAbstractLengthDecoratorSegmentdecorates a decoratee with a length prefix.classAn abstract implementation of aSegmentwith payload.classAbstractReferenceeLengthSegment<REFERENCEE extends Transmission>TheAbstractReferenceeLengthSegmentrepresents a allocated length value as of the referencedTransmissionelement's length.classAbstractSegmentDecorator<SEGMENT extends Segment>Convenience class for easily decorating aSegment.classAllocSectionDecoratorSegment<DECORATEE extends Section>AnAllocSectionDecoratorSegmentenriches anSectionwith an allocation declaration being prefixed to the enrichedSection.classAllocSegmentBody<DECORATEE extends Section>AnAllocSegmentBodyprovides anSegmentwith an allocation length.classAnAllocSegmentHeadprovides the allocation length for aAllocSegmentBody.classclassTheAsciizSegmentis an implementation of aSegmentcarrying an ASCII encodedStringas payload, terminated by a 0 ("zero") indicating its end.classTheAssertMagicBytesSegmentextends theMagicBytesSegmentand 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).classAssertMagicBytesSegmentDecorator<DECORATEE extends Segment>TheAssertMagicBytesSegmentDecoratorextends theMagicBytesSegmentDecoratorand 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).classTheBooleanSegmentis an implementation of aSegmentcarrying in boolean value as value.classBreakerSegmentDecorator<DECORATEE extends Segment>TheBreakerSegmentDecoratoris aDecoratorSegmentbuild to test error detection and error correctionTransmissionimplementations such as theCrcSegmentDecoratoror theStopAndWaitSegmentDecorator.classTheByteSegmentis an implementation of aSegmentcarrying in byte value as payload.classCipherSegmentDecorator<DECORATEE extends Segment>ACipherSegmentDecoratoris a transmission applying anInvertibleon outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)or the like) and the inverse function on any incoming bytes.classAComplexTypeSegmenttakes a POJO (a data structure) and creates from its content aSegmentrepresenting the POJO's structure.classCrcSegmentDecorator<DECORATEE extends Segment>classTheDoubleSegmentis an implementation of aSegmentcarrying in double value as payload.classTheDynamicTypeSegmentrepresents aSegmentwhich'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.classEnumSegment<E extends Enum<E>>TheEnumSegmentis an implementation of aSegmentcarrying an enumeration value as payload.classTheFixedLengthSequenceSegmentis aSegmentrepresenting aSequenceof a fixed length (as of the arguments passed to one of its constructors).classTheFloatSegmentis an implementation of aSegmentcarrying in float value as payload.classTheIntSegmentis an implementation of aSegmentcarrying an integer value as payload.classInvertibleSegmentDecorator<DECORATEE extends Segment>AInvertibleSegmentDecoratoris a transmission applying anInvertibleon outgoing bytes (as ofTransmission.transmitTo(java.io.OutputStream)or the like) and the inverse function on any incoming bytes.classLengthSegment<REFERENCEE extends Transmission>AnLengthSegmentenriches aSegmentwith an allocation declaration computed from the referencedTransmission.classLengthSegmentDecoratorSegment<DECORATEE extends Segment>AnLengthSegmentDecoratorSegmentenriches aSegmentwith an allocation declaration being prefixed to the enrichedSegment.classTheLongSegmentis an implementation of aSegmentcarrying in long value as payload.classMagic bytes are usually found (somewhere) at the beginning of a file or a stream.classMagicBytesSegmentDecorator<DECORATEE extends Segment>Magic bytes are usually found (somewhere) at the beginning of a file or a stream.classTHeMagicBytesSegmentMultiplexerdispatches a transmission to one of the aggregatedSegmentinstances depending on the magic number provided by the transmission.classclassTheNumberSegmentis an implementation of aSegmentcarrying an integer value with a configurable width (in bytes) as payload.classReadyToReceiveSegmentDecorator<DECORATEE extends Segment>TheReadyToReceiveSegmentDecoratorclass implements a decorator providingReadyToReceiveTransmissionfunctionality for aSegment.classReadyToSendSegmentDecorator<DECORATEE extends Segment>TheReadyToSendSegmentDecoratorclass implements a decorator providingReadyToSendTransmissionfunctionality for aSegment.classSegmentComposite<CHILD extends Segment>classConvenience class for theNumberSegmentusingTransmissionMetricssequence number related properties to configure theSequenceNumberSegment(being an accordingly configuredNumberSegment).classTheShortSegmentis an implementation of aSegmentcarrying in short value as payload.classStopAndWaitPacketStreamSegmentDecorator<DECORATEE extends Segment>AStopAndWaitPacketStreamSegmentDecoratorchunks any outgoing stream (OutputStream) into blocks of definite length and reassembles any incoming streams (InputStream) from blocks of definite size into a contiguous stream.classStopAndWaitSegmentDecorator<DECORATEE extends Segment>TheStopAndWaitSegmentDecoratorclass implements a decorator providingStopAndWaitTransmissionfunctionality for aSegment.classFields in org.refcodes.serial declared as SegmentModifier and TypeFieldDescriptionprotected SegmentAbstractStopAndWaitTransmissionDecorator._acknowledgeSegmentprotected SegmentAbstractReadyToSendTransmissionDecorator._clearToSendSegmentprotected SegmentPacketInputStream._packetSegmentprotected SegmentPacketOutputStream._packetSegmentprotected SegmentAbstractReadyToReceiveTransmissionDecorator._readyToReceiveSegmentprotected SegmentAbstractReadyToSendTransmissionDecorator._readyToSendSegmentMethods in org.refcodes.serial with type parameters of type SegmentModifier and TypeMethodDescriptionstatic <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(ARRAY... aSegmentArray) Constructs aSegmentArraySectionwith the givenSegmentelements.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(Class<ARRAY> aSegmentClass) Constructs aSegmentArraySectionwith instances of the array being created using the providedClassinstance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aSegmentArraySectionwith instances of the array being created using the providedTypeFactoryinstance.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySectionwith the given elements.static <DECORATEE extends Segment>
AssertMagicBytesSegmentDecorator<DECORATEE>SerialSugar.assertMagicBytesSegment(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegmentwith 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 providedSegmentwith 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 aBreakerSegmentDecoratorinstance 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 aCiphertransmission 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 aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby 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 aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcPrefixSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.mixin.ConcatenateMode aCrcChecksumConcatenateMode) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby 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 aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby 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 aCrcSegmentDecoratorwrapping 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 aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby default).static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.ChecksumValidationMode aChecksumValidationMode) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby 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 aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment(DECORATEE aDecoratee, org.refcodes.numerical.CrcAlgorithm aCrcAlgorithm, org.refcodes.numerical.Endianess aEndianess) Constructs aCrcSegmentDecoratorwrapping the givenSegment.static <DECORATEE extends Segment>
CrcSegmentDecorator<DECORATEE>SerialSugar.crcSuffixSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics) Constructs aCrcSegmentDecoratorwrapping the givenSegment(usingTransmissionMetrics.DEFAULT_ENDIANESSby 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 aFixedSegmentArraySectionwith the givenSegmentelements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection(Class<ARRAY> aSegmentClass) Constructs aFixedSegmentArraySectionwith instances of the array being created using the providedClassinstance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) Constructs aFixedSegmentArraySectionwith instances of the array being created using the providedTypeFactoryinstance.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySectionwith 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 aLengthSegmentDecoratorSegmentwith the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTHbytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESSendian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment(DECORATEE aSegment, int aLengthWidth) Constructs aLengthSegmentDecoratorSegmentwith the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESSendian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment(DECORATEE aSegment, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegmentwith the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianessrepresentation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment(DECORATEE aSegment, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegmentwith the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTHbytes used to specify the decoratee's length and the providedEndianessrepresentation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment(DECORATEE aSegment, TransmissionMetrics aTransmissionMetrics) Constructs aLengthSegmentDecoratorSegmentwith the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTHbytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESSendian representation of the decoratee's length.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSegmentwith the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegmentwith 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 providedSegmentwith the given magic bytes being prefixed.static <DECORATEE extends Segment>
MagicBytesSegmentDecorator<DECORATEE>SerialSugar.magicBytesSegment(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSegmentwith 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'sSequencedata (does not block this thread) and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidAbstractPort.onReceiveSegment(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment'sSequencedata (does not block this thread) and updates theSegmentby invokingfromTransmission(Sequence), passing the result to the callbackSegmentConsumer.onSegment(Segment).<SEGMENT extends Segment>
SegmentResult<SEGMENT>AbstractPortDecorator.onReceiveSegment(SEGMENT aSegment) Asynchronously receives aSegment'sSequencedata (does not block this thread) and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidAbstractPortDecorator.onReceiveSegment(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment'sSequencedata (does not block this thread) and updates theSegmentby invokingfromTransmission(Sequence), passing the result to the callbackSegmentConsumer.onSegment(Segment).<SEGMENT extends Segment>
SegmentResult<SEGMENT>SegmentReceiver.onReceiveSegment(SEGMENT aSegment) Asynchronously receives aSegment'sSequencedata (does not block this thread) and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidSegmentReceiver.onReceiveSegment(SEGMENT aSegment, SegmentConsumer<SEGMENT> aSegmentConsumer) Asynchronously receives aSegment'sSequencedata (does not block this thread) and updates theSegmentby 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 accordingReadyToSendSegmentDecoratorinstance.<HEADER extends Segment>
voidAbstractPort.receiveSegment(HEADER aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidAbstractPortDecorator.receiveSegment(SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidSegmentDestination.receiveSegment(SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).default <SEGMENT extends Segment>
voidSerialReceiver.receiveSegment(SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).default <SEGMENT extends Segment>
voidSerialTransceiver.receiveSegment(SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidAbstractPortDecorator.receiveSegmentWithin(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).<SEGMENT extends Segment>
voidSegmentReceiver.receiveSegmentWithin(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).default <SEGMENT extends Segment>
voidSerialReceiver.receiveSegmentWithin(long aTimeoutMillis, SEGMENT aSegment) Receives aSegment(and blocks this thread) till all it'sSequencedata has been received and updates theSegmentby invokingfromTransmission(Sequence).static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite(CHILD... aChildren) Constructs aSegmentCompositecontaining the providedSegmentelements.static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite(Collection<CHILD> aChildren) Constructs aSegmentCompositecontaining the providedSegmentelements.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 accordingStopAndWaitPacketStreamSegmentDecoratorinstance.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 accordingStopAndWaitSegmentDecoratorinstance.<SEGMENT extends Segment>
voidAbstractPortDecorator.transmitSegment(SEGMENT aSegment) Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.<SEGMENT extends Segment>
voidSegmentSource.transmitSegment(SEGMENT aSegment) Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.default <SEGMENT extends Segment>
voidSerialTransceiver.transmitSegment(SEGMENT aSegment) Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.default <SEGMENT extends Segment>
voidSerialTransmitter.transmitSegment(SEGMENT aSegment) Transmits aSegment(and blocks this thread) till all it'sSequencedata (as ofTransmission.toSequence()) has been sent.Methods in org.refcodes.serial that return SegmentModifier and TypeMethodDescriptionCrcSegmentPackager.toPackaged(Segment aUnpacked) SegmentPackager.DummySegmentPackager.toPackaged(Segment aUnpacked) SegmentPackager.toPackaged(Segment aUnpacked) Methods in org.refcodes.serial with parameters of type SegmentModifier and TypeMethodDescriptionstatic <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(ARRAY... aSegmentArray) Constructs aSegmentArraySectionwith the givenSegmentelements.static <ARRAY extends Segment>
SegmentArraySection<ARRAY>SerialSugar.arraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aSegmentArraySectionwith the given elements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection(ARRAY... aSegmentArray) Constructs aFixedSegmentArraySectionwith the givenSegmentelements.static <ARRAY extends Segment>
FixedSegmentArraySection<ARRAY>SerialSugar.fixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegmentArray) Constructs aFixedSegmentArraySectionwith the given elements.static MagicBytesSegmentMultiplexerSerialSugar.magicBytesSegmentMultiplexer(int aReadLimit, Segment... aSegments) Constructs aMagicBytesSegmentMultiplexercontaining the providedSegmentelements.static MagicBytesSegmentMultiplexerSerialSugar.magicBytesSegmentMultiplexer(Segment... aSegments) Constructs aMagicBytesSegmentMultiplexercontaining the providedSegmentelements.static <CHILD extends Segment>
SegmentComposite<CHILD>SerialSugar.segmentComposite(CHILD... aChildren) Constructs aSegmentCompositecontaining the providedSegmentelements.CrcSegmentPackager.toPackaged(Segment aUnpacked) SegmentPackager.DummySegmentPackager.toPackaged(Segment aUnpacked) SegmentPackager.toPackaged(Segment aUnpacked) Method parameters in org.refcodes.serial with type arguments of type SegmentModifier and TypeMethodDescriptionstatic MagicBytesSegmentMultiplexerSerialSugar.magicBytesSegmentMultiplexer(Collection<Segment> aSegments) Constructs aMagicBytesSegmentMultiplexercontaining the providedSegmentelements.static MagicBytesSegmentMultiplexerSerialSugar.magicBytesSegmentMultiplexer(Collection<Segment> aSegments, int aReadLimit) Constructs aMagicBytesSegmentMultiplexercontaining the providedSegmentelements.Constructors in org.refcodes.serial with parameters of type SegmentModifierConstructorDescriptionFixedSegmentArraySection(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) Constructor parameters in org.refcodes.serial with type arguments of type SegmentModifierConstructorDescriptionMagicBytesSegmentMultiplexer(Collection<Segment> aSegments) MagicBytesSegmentMultiplexer(Collection<Segment> aSegments, int aReadLimit)