Package org.refcodes.io
Interface ByteConsumer
-
- All Superinterfaces:
ByteBlockConsumer,ByteDatagramConsumer
- All Known Subinterfaces:
BidirectionalConnectionByteTransceiver<INPUT,OUTPUT>,BidirectionalStreamConnectionByteTransceiver,ByteArrayConsumer,ByteSender,ByteTransceiver,ConnectionByteSender<CON>,ConnectionByteTransceiver<CON>,LoopbackByteSender,LoopbackByteTransceiver,OutputStreamConnectionByteSender
- All Known Implementing Classes:
AbstractByteSender,BidirectionalStreamByteTransceiverImpl,BidirectionalStreamConnectionByteTransceiverImpl,ByteArrayConsumerImpl,ByteSenderDecorator,LoopbackByteSenderImpl,LoopbackByteTransceiverImpl,OutputStreamByteSenderImpl,OutputStreamConnectionByteSenderImpl,PrefetchBidirectionalStreamByteTransceiverImpl,PrefetchBidirectionalStreamConnectionByteTransceiverImpl
- 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 ByteConsumer extends ByteDatagramConsumer, ByteBlockConsumer
The Interface ByteConsumer.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidwriteDatagram(byte aDatagram)Writes (sends) a byte.default voidwriteDatagrams(byte[] aDatagrams)Writes (sends) a byte block.-
Methods inherited from interface org.refcodes.io.ByteBlockConsumer
writeDatagrams
-
-
-
-
Method Detail
-
writeDatagram
default void writeDatagram(byte aDatagram) throws org.refcodes.component.OpenExceptionWrites (sends) a byte.- Specified by:
writeDatagramin interfaceByteDatagramConsumer- Parameters:
aDatagram- The byte to be pushed.- Throws:
org.refcodes.component.OpenException- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
writeDatagrams
default void writeDatagrams(byte[] aDatagrams) throws org.refcodes.component.OpenExceptionWrites (sends) a byte block.- Specified by:
writeDatagramsin interfaceByteBlockConsumer- Parameters:
aDatagrams- The byte to be pushed.- Throws:
org.refcodes.component.OpenException- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
-