Uses of Class
org.refcodes.serial.MagicBytesSegmentDecorator
-
Uses of MagicBytesSegmentDecorator in org.refcodes.serial
Modifier and TypeClassDescriptionclass
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).Modifier and TypeMethodDescriptionstatic <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.MagicBytesSegmentDecorator.withPayload
(byte[] aValue)