ByteArrayConsumer
, ByteBlockConsumer
, ByteConsumer
, ByteDatagramConsumer
, org.refcodes.structure.ByteArrayAccessor
public 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.
|
writeDatagrams
public void writeDatagram(byte aDatagram) throws org.refcodes.component.OpenException
writeDatagram
in interface ByteConsumer
writeDatagram
in interface ByteDatagramConsumer
aDatagram
- 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 ByteBlockConsumer
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.public byte[] getBytes()
getBytes
in interface org.refcodes.structure.ByteArrayAccessor
getBytes
in interface ByteArrayConsumer
Copyright © 2018. All rights reserved.