Uses of Interface
org.refcodes.serial.Segment.SegmentMixin
-
Uses of Segment.SegmentMixin in org.refcodes.serial
Modifier and TypeClassDescriptionclass
An abstract implementation of aSegment
with payload.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 ofSegment.fromTransmission(Sequence)
andreceiveFrom(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 ofSegment.fromTransmission(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
TheByteSegment
is an implementation of aSegment
carrying in byte value as payload.class
AComplexTypeSegment
takes a POJO (a data structure) and creates from its content aSegment
representing the POJO's structure.class
TheDoubleSegment
is an implementation of aSegment
carrying in double value as payload.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
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
TheNumberSegment
is an implementation of aSegment
carrying in long an integer value with a configurable width (in bytes) as payload.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.