ByteSource
, BytesSource
, org.refcodes.struct.ByteArrayAccessor
public class ByteArraySource extends Object implements BytesSource, org.refcodes.struct.ByteArrayAccessor
org.refcodes.struct.ByteArrayAccessor.ByteArrayBuilder<B extends org.refcodes.struct.ByteArrayAccessor.ByteArrayBuilder<B>>, org.refcodes.struct.ByteArrayAccessor.ByteArrayMutator, org.refcodes.struct.ByteArrayAccessor.ByteArrayProperty
Constructor | Description |
---|---|
ByteArraySource() |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBytes() |
|
void |
transmitByte(byte aByte) |
Writes (sends) a byte.
|
void |
transmitBytes(byte[] aBytes,
int aOffset,
int aLength) |
Writes (sends) a byte block.
|
transmitAllBytes
public void transmitByte(byte aByte) throws IOException
transmitByte
in interface ByteSource
transmitByte
in interface BytesSource
aByte
- The byte to be pushed.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.public void transmitBytes(byte[] aBytes, int aOffset, int aLength) throws IOException
transmitBytes
in interface BytesSource
aBytes
- 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.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.public byte[] getBytes()
getBytes
in interface org.refcodes.struct.ByteArrayAccessor
Copyright © 2021. All rights reserved.