org.refcodes.mixin.LengthAccessor
, Serializable
, Transmission
ArraySection<ARRAY>
, ArraySegment<SEGMENT>
, Section.SectionMixin
, Segment.SegmentMixin
AbstractCipherTransmissionDecorator
, AbstractCrcTransmissionDecorator
, AbstractErrorCorrectionTransmissionDecorator
, AbstractInvertibleTransmissionDecorator
, AbstractLengthDecoratorSegment
, AbstractMagicBytesTransmission
, AbstractMagicBytesTransmissionDecorator
, AbstractPayloadSection
, AbstractPayloadSegment
, AbstractReadyToReceiveTransmissionDecorator
, AbstractReadyToSendTransmissionDecorator
, AbstractReferenceeLengthSegment
, AbstractSectionDecorator
, AbstractSegmentDecorator
, AbstractStopAndWaitPacketStreamTransmissionDecorator
, AbstractStopAndWaitTransmissionDecorator
, AbstractTransmissionDecorator
, AllocSectionDecoratorSegment
, AllocSegmentBody
, AllocSegmentHead
, AsciizArraySegment
, AsciizSegment
, AssertMagicBytesSectionDecorator
, AssertMagicBytesSegment
, AssertMagicBytesSegmentDecorator
, BooleanArraySection
, BooleanSegment
, BreakerSectionDecorator
, BreakerSegmentDecorator
, ByteArraySection
, ByteSegment
, CharArraySection
, CharSection
, CipherSectionDecorator
, CipherSegmentDecorator
, ComplexTypeSegment
, CrcSectionDecorator
, CrcSegmentDecorator
, DoubleArraySection
, DoubleSegment
, DynamicTypeSegment
, FileSection
, FixedLengthSequenceSegment
, FixedSegmentArraySection
, FloatArraySection
, FloatSegment
, FullDuplexPacketPortDecorator.TransmissionSegment
, FullDuplexTxPortDecorator.TransmissionSegment
, IntArraySection
, IntSegment
, InvertibleSectionDecorator
, InvertibleSegmentDecorator
, LengthDecoratorSegment
, LengthSegmentDecoratorSegment
, LongArraySection
, LongSegment
, MagicBytesSectionDecorator
, MagicBytesSegment
, MagicBytesSegmentDecorator
, NumberSegment
, PropertiesSection
, ReadyToReceiveSectionDecorator
, ReadyToReceiveSegmentDecorator
, ReadyToSendSectionDecorator
, ReadyToSendSegmentDecorator
, SectionComposite
, SegmentArraySection
, SegmentComposite
, SequenceNumberSegment
, SequenceSection
, ShortArraySection
, ShortSegment
, StopAndWaitPacketStreamSectionDecorator
, StopAndWaitPacketStreamSegmentDecorator
, StopAndWaitSectionDecorator
, StopAndWaitSegmentDecorator
, StringArraySection
, StringSection
public static interface Transmission.TransmissionMixin extends Transmission
Transmission
interface providing an
implementation of the transmitTo(OutputStream, InputStream)
method using the Transmission.toTransmission()
method.org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthProperty
Transmission.TransmissionMixin
Modifier and Type | Method | Description |
---|---|---|
default void |
transmitTo(OutputStream aOutputStream,
InputStream aReturnStream) |
Default implementation harnessing the
Transmission.toTransmission()
method. |
fromInputStream, getLength, toSchema, toSimpleTypeMap, toTransmission, transmitTo, transmitTo
default void transmitTo(OutputStream aOutputStream, InputStream aReturnStream) throws IOException
Transmission.toTransmission()
method. Transmits the Sequence
representing the implementing type's
instance to the given OutputStream
. Implementations providing
error correction methods use the provided feedback InputStream
to
do some sort of "stop-and-wait ARQ" or apply similar methods to ensure
correctness of the transmitted data.transmitTo
in interface Transmission
aOutputStream
- The OutputStream
where to write this
instance's Sequence
to.aReturnStream
- An InputStream
being the return channel to
handle "stop-and-wait ARQ" or the like in case of a bidirectional
connection. Can be null in case we have a unidirectional
connection.IOException
- thrown in case writing data to the
OutputStream
caused problems.Copyright © 2021. All rights reserved.