DECORATEE
- The type of the Section
decoratee.Serializable
, org.refcodes.mixin.DecorateeAccessor<DECORATEE>
, org.refcodes.mixin.LengthAccessor
, AllocLengthAccessor
, DecoratorSegment<DECORATEE>
, LengthWidthAccessor
, Segment
, Transmission
, Transmission.TransmissionMixin
public class AllocSectionDecoratorSegment<DECORATEE extends Section> extends AbstractLengthDecoratorSegment<DECORATEE> implements DecoratorSegment<DECORATEE>
AllocSectionDecoratorSegment
enriches an Section
with an
allocation declaration being prefixed to the enriched Section
.AllocLengthAccessor.AllocLengthBuilder<B extends AllocLengthAccessor.AllocLengthBuilder<B>>, AllocLengthAccessor.AllocLengthMutator, AllocLengthAccessor.AllocLengthProperty
org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE extends Object,B extends org.refcodes.mixin.DecorateeAccessor.DecorateeBuilder<DECORATEE,B>>, org.refcodes.mixin.DecorateeAccessor.DecorateeMutator<DECORATEE extends Object>, org.refcodes.mixin.DecorateeAccessor.DecorateeProperty<DECORATEE extends Object>
org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B extends org.refcodes.numerical.EndianessAccessor.EndianessBuilder<B>>, org.refcodes.numerical.EndianessAccessor.EndianessMutator, org.refcodes.numerical.EndianessAccessor.EndianessProperty
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthProperty
LengthWidthAccessor.LengthWidthBuilder<B extends LengthWidthAccessor.LengthWidthBuilder<B>>, LengthWidthAccessor.LengthWidthMutator, LengthWidthAccessor.LengthWidthProperty
Segment.SegmentMixin
Transmission.TransmissionMixin
_allocLength, _endianess, _lengthWidth, _referencee, LENGTH_ENDIANESS, LENGTH_WIDTH
Modifier | Constructor | Description |
---|---|---|
protected |
AllocSectionDecoratorSegment() |
(hook for the
SectionComposite ) |
protected |
AllocSectionDecoratorSegment(int aLengthWidth) |
(hook for the
SectionComposite ) |
protected |
AllocSectionDecoratorSegment(int aLengthWidth,
org.refcodes.numerical.Endianess aEndianess) |
(hook for the
SectionComposite ) |
|
AllocSectionDecoratorSegment(DECORATEE aDecoratee) |
|
|
AllocSectionDecoratorSegment(DECORATEE aDecoratee,
int aLengthWidth) |
|
|
AllocSectionDecoratorSegment(DECORATEE aDecoratee,
int aLengthWidth,
org.refcodes.numerical.Endianess aEndianess) |
|
|
AllocSectionDecoratorSegment(DECORATEE aDecoratee,
org.refcodes.numerical.Endianess aEndianess) |
|
|
AllocSectionDecoratorSegment(DECORATEE aDecoratee,
TransmissionMetrics aTransmissionMetrics) |
|
protected |
AllocSectionDecoratorSegment(org.refcodes.numerical.Endianess aEndianess) |
(hook for the
SectionComposite ) |
protected |
AllocSectionDecoratorSegment(TransmissionMetrics aTransmissionMetrics) |
Modifier and Type | Method | Description |
---|---|---|
int |
fromTransmission(Sequence aSequence,
int aOffset) |
(Re-)initializes this instance with the the given
Sequence data. |
void |
receiveFrom(InputStream aInputStream,
OutputStream aReturnStream) |
(Re-)initializes this instance by receiving the according
Sequence from the given InputStream . |
protected void |
setDecoratee(DECORATEE aDecoratee) |
Hook and package local setter for the
SectionComposite class. |
getDecoratee, getLength, toSchema, toString, toTransmission, transmitTo
equals, getAllocLength, getEndianess, getLengthWidth, hashCode, toSimpleTypeMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fromTransmission, fromTransmission, fromTransmission, receiveFrom, receiveFrom
fromInputStream, getLength, toSchema, toSimpleTypeMap, toTransmission, transmitTo, transmitTo, transmitTo
protected AllocSectionDecoratorSegment(TransmissionMetrics aTransmissionMetrics)
public AllocSectionDecoratorSegment(DECORATEE aDecoratee, TransmissionMetrics aTransmissionMetrics)
protected AllocSectionDecoratorSegment()
SectionComposite
)protected AllocSectionDecoratorSegment(org.refcodes.numerical.Endianess aEndianess)
SectionComposite
)protected AllocSectionDecoratorSegment(int aLengthWidth, org.refcodes.numerical.Endianess aEndianess)
SectionComposite
)protected AllocSectionDecoratorSegment(int aLengthWidth)
SectionComposite
)public AllocSectionDecoratorSegment(DECORATEE aDecoratee, org.refcodes.numerical.Endianess aEndianess)
public AllocSectionDecoratorSegment(DECORATEE aDecoratee, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess)
public AllocSectionDecoratorSegment(DECORATEE aDecoratee, int aLengthWidth)
public AllocSectionDecoratorSegment(DECORATEE aDecoratee)
public int fromTransmission(Sequence aSequence, int aOffset) throws TransmissionException
Sequence
data.fromTransmission
in interface Segment
fromTransmission
in class AbstractReferenceeLengthSegment<DECORATEE extends Section>
aSequence
- The Sequence
data from which to (re-)initialize
this instance.aOffset
- The offset where to start processing the provided
Sequence
.Sequence
processed by this method.TransmissionException
- thrown in case a given Sequence
cannot be processed.public void receiveFrom(InputStream aInputStream, OutputStream aReturnStream) throws IOException, TransmissionException
Sequence
from the given InputStream
. Implementations
providing error correction methods use the provided feedback
OutputStream
to do some sort of "stop-and-wait ARQ" or apply
similar methods to ensure correctness of the received data.receiveFrom
in interface Segment
receiveFrom
in class AbstractReferenceeLengthSegment<DECORATEE extends Section>
aInputStream
- The InputStream
from which to read the
instance's (re-)initialization Sequence
from.aReturnStream
- An OutputStream
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 reading data from the
InputStream
caused problems.TransmissionException
- thrown in case a given transmission cannot
be processed.protected void setDecoratee(DECORATEE aDecoratee)
SectionComposite
class.aDecoratee
- The decoratee to be set.Copyright © 2021. All rights reserved.