public class ByteArrayProviderImpl extends AbstractByteProvider implements ByteArrayProvider
org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B extends org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B>>, org.refcodes.structure.ByteArrayAccessor.ByteArrayMutator, org.refcodes.structure.ByteArrayAccessor.ByteArrayProperty
_datagramQueue, DATAGRAM_QUEUE_SIZE
Constructor and Description |
---|
ByteArrayProviderImpl(byte[] aDatagrams)
Instantiates a new byte array provider impl.
|
ByteArrayProviderImpl(List<Byte> aDatagrams)
Instantiates a new byte array provider impl.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Provides access to the remaining backing byte array.
|
pushDatagram, pushDatagrams, pushDatagrams, readDatagram, readDatagrams, readDatagrams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readDatagrams, readDatagrams
readDatagram
public ByteArrayProviderImpl(byte[] aDatagrams)
aDatagrams
- the datagramspublic byte[] getBytes()
ByteDatagramProvider.readDatagram()
or ByteProvider.readDatagrams(int)
are not contained in the returned array.getBytes
in interface ByteArrayProvider
getBytes
in interface org.refcodes.structure.ByteArrayAccessor
Copyright © 2018. All rights reserved.