public class ByteArrayReceiverImpl extends AbstractByteReceiver implements ByteArrayReceiver
AbstractByteReceiver.ConnectableAutomaton
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>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B extends org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B>>, org.refcodes.structure.ByteArrayAccessor.ByteArrayMutator, org.refcodes.structure.ByteArrayAccessor.ByteArrayProperty
_automaton
_datagramQueue, DATAGRAM_QUEUE_SIZE
Constructor and Description |
---|
ByteArrayReceiverImpl(byte[] aDatagrams)
Instantiates a new byte array receiver impl.
|
ByteArrayReceiverImpl(List<Byte> aDatagrams)
Instantiates a new byte array receiver impl.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Provides access to the remaining backing byte array.
|
close, getConnectionStatus, hasDatagram, isClosable, isClosed, isOpenable, isOpened, open, readDatagram, readDatagrams, readDatagrams, releaseAll, setConnectionStatus
pushDatagram, pushDatagrams, pushDatagrams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readDatagrams, readDatagrams
readDatagram
hasDatagram
close, closeIn, closeQuietly, closeUnchecked
public ByteArrayReceiverImpl(byte[] aDatagrams)
aDatagrams
- the datagramspublic byte[] getBytes()
ByteDatagramProvider.readDatagram()
or ByteReceiver.readDatagrams(int)
are not contained in the returned array.getBytes
in interface ByteArrayReceiver
getBytes
in interface org.refcodes.structure.ByteArrayAccessor
Copyright © 2018. All rights reserved.