@FunctionalInterface public interface ByteBlockConsumer
ByteBlockConsumer
is used to send byte blocks (arrays) in a
unified way.Modifier and Type | Method and Description |
---|---|
default void |
writeDatagrams(byte[] aDatagrams)
Writes (sends) a byte block.
|
void |
writeDatagrams(byte[] aDatagrams,
int aOffset,
int aLength)
Writes (sends) a byte block.
|
default void writeDatagrams(byte[] aDatagrams) throws org.refcodes.component.OpenException
aDatagrams
- The byte to be pushed.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.void writeDatagrams(byte[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenException
aDatagrams
- The byte to be pushed.aOffset
- The offset from which to take the data.aLength
- The number of elements to push starting at the given
offset.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2018. All rights reserved.