Interface ShortsSource

All Superinterfaces:
ShortSource
All Known Subinterfaces:
ConnectionShortsTransceiver<CON>, ConnectionShortsTransmitter<CON>, ShortsTransceiver, ShortsTransmitter
All Known Implementing Classes:
AbstractShortsTransmitter, LoopbackShortsTransceiver, LoopbackShortsTransmitter, OutputStreamConnectionShortsTransmitter, OutputStreamShortsTransmitter, ShortArraySource, ShortTransmitterDecorator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ShortsSource extends ShortSource
The ShortsSource is used to send short blocks (arrays) in a unified way.
  • Method Summary

    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.
  • Method Details

    • transmitShort

      default void transmitShort(short aShort) throws IOException
      Writes (sends) a short.
      Specified by:
      transmitShort in interface ShortSource
      Parameters:
      aShort - The short to be pushed.
      Throws:
      IOException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
    • transmitAllShorts

      default void transmitAllShorts(short[] aShorts) throws IOException
      Writes (sends) a short block.
      Parameters:
      aShorts - The short to be pushed.
      Throws:
      IOException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
    • transmitShorts

      void transmitShorts(short[] aShorts, int aOffset, int aLength) throws IOException
      Writes (sends) a short block.
      Parameters:
      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.
      Throws:
      IOException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.