@FunctionalInterface public interface ByteConsumer extends ByteDatagramConsumer, ByteBlockConsumer
Modifier and Type | Method and Description |
---|---|
default void |
writeDatagram(byte aDatagram)
Writes (sends) a byte.
|
default void |
writeDatagrams(byte[] aDatagrams)
Writes (sends) a byte block.
|
writeDatagrams
default void writeDatagram(byte aDatagram) throws org.refcodes.component.OpenException
writeDatagram
in interface ByteDatagramConsumer
aDatagram
- The byte to be pushed.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.default void writeDatagrams(byte[] aDatagrams) throws org.refcodes.component.OpenException
writeDatagrams
in interface ByteBlockConsumer
aDatagrams
- The byte to be pushed.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.