Package org.refcodes.io
Interface ByteSender
-
- All Superinterfaces:
ByteBlockConsumer,ByteBlockSender,ByteConsumer,ByteDatagramConsumer,ByteDatagramSender,org.refcodes.component.Closable,org.refcodes.component.Closable.CloseAutomaton,org.refcodes.component.ClosedAccessor,org.refcodes.component.ConnectableComponent,org.refcodes.component.ConnectableComponent.ConnectableAutomaton,org.refcodes.component.ConnectionStatusAccessor,java.io.Flushable,org.refcodes.component.Flushable,org.refcodes.component.OpenedAccessor,Sendable
- All Known Subinterfaces:
BidirectionalConnectionByteTransceiver<INPUT,OUTPUT>,BidirectionalStreamConnectionByteTransceiver,ByteTransceiver,ConnectionByteSender<CON>,ConnectionByteTransceiver<CON>,LoopbackByteSender,LoopbackByteTransceiver,OutputStreamConnectionByteSender
- All Known Implementing Classes:
AbstractByteSender,BidirectionalStreamByteTransceiverImpl,BidirectionalStreamConnectionByteTransceiverImpl,ByteSenderDecorator,LoopbackByteSenderImpl,LoopbackByteTransceiverImpl,OutputStreamByteSenderImpl,OutputStreamConnectionByteSenderImpl,PrefetchBidirectionalStreamByteTransceiverImpl,PrefetchBidirectionalStreamConnectionByteTransceiverImpl
public interface ByteSender extends ByteConsumer, ByteDatagramSender, ByteBlockSender
The Interface ByteSender.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ClosedAccessor
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectableComponent
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidflush()default voidwriteDatagrams(byte[] aDatagrams, int aOffset, int aLength)Writes (sends) a byte block.-
Methods inherited from interface org.refcodes.io.ByteConsumer
writeDatagram, writeDatagrams
-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
-
-
-
Method Detail
-
writeDatagrams
default void writeDatagrams(byte[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenExceptionWrites (sends) a byte block.- Specified by:
writeDatagramsin interfaceByteBlockConsumer- 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.
-
flush
default void flush() throws org.refcodes.component.OpenException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin interfaceorg.refcodes.component.Flushable- Throws:
org.refcodes.component.OpenException
-
-