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
, org.refcodes.component.OpenedAccessor
, ByteArrayReceiver
, ByteBlockProvider
, ByteBlockReceiver
, ByteDatagramProvider
, ByteDatagramReceiver
, ByteProvider
, ByteReceiver
, Receivable
, org.refcodes.mixin.Loggable
, org.refcodes.mixin.Releaseable
, org.refcodes.structure.ByteArrayAccessor
public class ByteArrayReceiverImpl extends AbstractByteReceiver implements ByteArrayReceiver
AbstractByteReceiver.ConnectableAutomaton
org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B extends org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B>>, org.refcodes.structure.ByteArrayAccessor.ByteArrayMutator, org.refcodes.structure.ByteArrayAccessor.ByteArrayProperty
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.ConnectableComponent.ConnectableAutomaton
_datagramQueue, DATAGRAM_QUEUE_SIZE
_automaton
Constructor | 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 | Description |
---|---|---|
byte[] |
getBytes() |
Provides access to the remaining backing byte array.
|
pushDatagram, pushDatagrams, pushDatagrams
close, getConnectionStatus, hasDatagram, isClosable, isClosed, isOpenable, isOpened, open, readDatagram, readDatagrams, readDatagrams, releaseAll, setConnectionStatus
readDatagram
readDatagrams, readDatagrams
close, closeIn, closeQuietly, closeUnchecked
getConnectionStatus, isConnectionOpened
alert, alert, critical, critical, debug, error, info, notice, panic, trace, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasDatagram
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 org.refcodes.structure.ByteArrayAccessor
getBytes
in interface ByteArrayReceiver
Copyright © 2018. All rights reserved.