Uses of Class
org.refcodes.serial.MagicBytesSegmentDecorator
-
Uses of MagicBytesSegmentDecorator in org.refcodes.serial
Subclasses of MagicBytesSegmentDecorator in org.refcodes.serialModifier and TypeClassDescriptionclassAssertMagicBytesSegmentDecorator<DECORATEE extends Segment>TheAssertMagicBytesSegmentDecoratorextends theMagicBytesSegmentDecoratorand 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).Methods in org.refcodes.serial that return MagicBytesSegmentDecoratorModifier and TypeMethodDescriptionstatic <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.MagicBytesSegmentDecorator.withPayload(byte[] aValue)