Package org.refcodes.io
Interface ShortSender
-
- All Superinterfaces:
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,ShortBlockConsumer,ShortBlockSender,ShortConsumer,ShortDatagramConsumer,ShortDatagramSender
- All Known Subinterfaces:
ConnectionShortSender<CON>,ConnectionShortTransceiver<CON>,LoopbackShortSender,LoopbackShortTransceiver,ShortTransceiver
- All Known Implementing Classes:
AbstractShortSender,LoopbackShortSenderImpl,LoopbackShortTransceiverImpl,ShortSenderDecorator
public interface ShortSender extends ShortConsumer, ShortDatagramSender, ShortBlockSender
The Interface ShortSender.- Author:
- steiner
-
-
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(short[] aDatagrams, int aOffset, int aLength)Writes (sends) a short block.-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isConnectionOpened
-
Methods inherited from interface org.refcodes.io.ShortConsumer
writeDatagram, writeDatagrams
-
-
-
-
Method Detail
-
writeDatagrams
default void writeDatagrams(short[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenExceptionWrites (sends) a short block.- Specified by:
writeDatagramsin interfaceShortBlockConsumer- Parameters:
aDatagrams- The short 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
-
-