public abstract class AbstractByteSender extends org.refcodes.component.impls.AbstractConnectableAutomaton implements ByteSender
AbstractByteSender
is a base abstract implementation of the
ByteSender
interface providing common functionality for concrete real
live ByteDatagramSender
and ByteBlockSender
(=
ByteSender
) implementations.org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
Constructor and Description |
---|
AbstractByteSender() |
Modifier and Type | Method and Description |
---|---|
void |
writeDatagrams(byte[] aDatagrams,
int aOffset,
int aLength)
Writes (sends) a byte block.
|
close, getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flush
writeDatagram, writeDatagrams
public void writeDatagrams(byte[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenException
ByteBlockConsumer
writeDatagrams
in interface ByteBlockConsumer
writeDatagrams
in interface ByteSender
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.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.