Uses of Class
org.refcodes.serial.MagicBytesSectionDecorator
-
Uses of MagicBytesSectionDecorator in org.refcodes.serial
Modifier and TypeClassDescriptionclass
AssertMagicBytesSectionDecorator<DECORATEE extends Section>
TheAssertMagicBytesSectionDecorator
extends theMagicBytesSectionDecorator
and enforces the configured magic bytes to match the received magic bytes (as ofAssertMagicBytesSectionDecorator.fromTransmission(Sequence, int, int)
andAssertMagicBytesSectionDecorator.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
or the like).Modifier and TypeMethodDescriptionstatic <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, byte... aMagicBytes) Enriches the providedSection
with the given magic bytes being prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, int aMagicBytesLength) Enriches the providedSection
with magic bytes of the given length to be prefixed.static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes) static <DECORATEE extends Section>
MagicBytesSectionDecorator<DECORATEE>SerialSugar.magicBytesSection
(String aAlias, DECORATEE aDecoratee, String aMagicBytes, Charset aCharset) MagicBytesSectionDecorator.withPayload
(byte[] aValue)