ShortSource
ConnectionShortsTransceiver<CON>
, ConnectionShortsTransmitter<CON>
, ShortsTransceiver
, ShortsTransmitter
AbstractShortsTransmitter
, LoopbackShortsTransceiver
, LoopbackShortsTransmitter
, OutputStreamConnectionShortsTransmitter
, OutputStreamShortsTransmitter
, ShortArraySource
, ShortTransmitterDecorator
@FunctionalInterface public interface ShortsSource extends ShortSource
ShortsSource
is used to send short blocks (arrays) in a unified
way.Modifier and Type | Method | Description |
---|---|---|
default void |
transmitAllShorts(short[] aShorts) |
Writes (sends) a short block.
|
default void |
transmitShort(short aShort) |
Writes (sends) a short.
|
void |
transmitShorts(short[] aShorts,
int aOffset,
int aLength) |
Writes (sends) a short block.
|
default void transmitShort(short aShort) throws IOException
transmitShort
in interface ShortSource
aShort
- The short to be pushed.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.default void transmitAllShorts(short[] aShorts) throws IOException
aShorts
- The short to be pushed.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.void transmitShorts(short[] aShorts, int aOffset, int aLength) throws IOException
aShorts
- The short to be pushed.aOffset
- The offset from which to take the data.aLength
- The number of elements to push starting at the given
offset.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2021. All rights reserved.