Uses of Interface
org.refcodes.serial.DecoratorSegment
-
Uses of DecoratorSegment in org.refcodes.serial
Modifier and TypeClassDescriptionclass
AbstractLengthDecoratorSegment<DECORATEE extends Transmission>
TheAbstractLengthDecoratorSegment
decorates a decoratee with a length prefix.class
AllocSectionDecoratorSegment<DECORATEE extends Section>
AnAllocSectionDecoratorSegment
enriches anSection
with an allocation declaration being prefixed to the enrichedSection
.class
AssertMagicBytesSegmentDecorator<DECORATEE extends Segment>
TheAssertMagicBytesSegmentDecorator
extends theMagicBytesSegmentDecorator
and enforces the configured magic bytes to match the received magic bytes (as ofSegment.fromTransmission(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
CrcSegmentDecorator<DECORATEE extends Segment>
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
.class
ReadyToSendSegmentDecorator<DECORATEE extends Segment>
TheReadyToSendSegmentDecorator
class implements a decorator providingReadyToSendTransmission
functionality for aSegment
.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
.