ByteArrayConsumer, ByteBlockConsumer, ByteConsumer, ByteDatagramConsumer, org.refcodes.structure.ByteArrayAccessorpublic class ByteArrayConsumerImpl extends Object implements ByteArrayConsumer
org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B extends org.refcodes.structure.ByteArrayAccessor.ByteArrayBuilder<B>>, org.refcodes.structure.ByteArrayAccessor.ByteArrayMutator, org.refcodes.structure.ByteArrayAccessor.ByteArrayProperty| Constructor | Description |
|---|---|
ByteArrayConsumerImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getBytes() |
Provides access to the consumed bytes as byte array.
|
void |
writeDatagram(byte aDatagram) |
Writes (sends) a byte.
|
void |
writeDatagrams(byte[] aDatagrams,
int aOffset,
int aLength) |
Writes (sends) a byte block.
|
writeDatagramspublic void writeDatagram(byte aDatagram)
throws org.refcodes.component.OpenException
writeDatagram in interface ByteConsumerwriteDatagram in interface ByteDatagramConsumeraDatagram - The byte to be pushed.org.refcodes.component.OpenException - Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.public void writeDatagrams(byte[] aDatagrams,
int aOffset,
int aLength)
throws org.refcodes.component.OpenException
writeDatagrams in interface ByteBlockConsumeraDatagrams - 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.public byte[] getBytes()
getBytes in interface org.refcodes.structure.ByteArrayAccessorgetBytes in interface ByteArrayConsumerCopyright © 2018. All rights reserved.