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 and Description |
---|
ByteArrayConsumerImpl() |
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 ByteArrayConsumer
getBytes
in interface org.refcodes.structure.ByteArrayAccessor
Copyright © 2017. All rights reserved.