Package org.refcodes.io
Interface ShortBlockConsumer
-
- All Known Subinterfaces:
ConnectionShortSender<CON>
,ConnectionShortTransceiver<CON>
,LoopbackShortSender
,LoopbackShortTransceiver
,ShortBlockSender
,ShortConsumer
,ShortSender
,ShortTransceiver
- All Known Implementing Classes:
AbstractShortSender
,LoopbackShortSenderImpl
,LoopbackShortTransceiverImpl
,ShortSenderDecorator
- 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 ShortBlockConsumer
TheShortBlockConsumer
is used to send short blocks (arrays) in a unified way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
writeDatagrams(short[] aDatagrams)
Writes (sends) a short block.void
writeDatagrams(short[] aDatagrams, int aOffset, int aLength)
Writes (sends) a short block.
-
-
-
Method Detail
-
writeDatagrams
default void writeDatagrams(short[] aDatagrams) throws org.refcodes.component.OpenException
Writes (sends) a short block.- Parameters:
aDatagrams
- The short to be pushed.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
writeDatagrams
void writeDatagrams(short[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenException
Writes (sends) a short block.- Parameters:
aDatagrams
- 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:
org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
-