Package org.refcodes.io
Interface ByteBlockConsumer
-
- All Known Subinterfaces:
BidirectionalConnectionByteTransceiver<INPUT,OUTPUT>,BidirectionalStreamConnectionByteTransceiver,ByteArrayConsumer,ByteBlockSender,ByteBlockTransceiver,ByteConsumer,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 ByteBlockConsumerTheByteBlockConsumeris used to send byte blocks (arrays) in a unified way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidwriteDatagrams(byte[] aDatagrams)Writes (sends) a byte block.voidwriteDatagrams(byte[] aDatagrams, int aOffset, int aLength)Writes (sends) a byte block.
-
-
-
Method Detail
-
writeDatagrams
default void writeDatagrams(byte[] aDatagrams) throws org.refcodes.component.OpenExceptionWrites (sends) a byte block.- 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.
-
writeDatagrams
void writeDatagrams(byte[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenExceptionWrites (sends) a byte block.- Parameters:
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.- Throws:
org.refcodes.component.OpenException- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
-