ByteSource
BidirectionalConnectionByteTransceiver<INPUT,OUTPUT>
, BidirectionalStreamConnectionByteTransceiver
, BytesTransceiver
, BytesTransmitter
, ConnectionBytesTransceiver<CON>
, ConnectionBytesTransmitter<CON>
AbstractBytesTransmitter
, BidirectionalStreamByteTransceiver
, BidirectionalStreamConnectionByteTransceiverImpl
, ByteArraySource
, ByteTransmitterDecorator
, LoopbackBytesTransceiver
, LoopbackBytesTransmitter
, OutputStreamBytesTransmitter
, OutputStreamConnectionBytesTransmitter
, PrefetchBidirectionalStreamByteTransceiver
, PrefetchBidirectionalStreamConnectionByteTransceiver
@FunctionalInterface public interface BytesSource extends ByteSource
BytesSource
is used to send byte blocks (arrays) in a unified
way.Modifier and Type | Method | Description |
---|---|---|
default void |
transmitAllBytes(byte[] aBytes) |
Writes (sends) a byte block.
|
default void |
transmitByte(byte aByte) |
Writes (sends) a byte.
|
void |
transmitBytes(byte[] aBytes,
int aOffset,
int aLength) |
Writes (sends) a byte block.
|
default void transmitByte(byte aByte) throws IOException
transmitByte
in interface ByteSource
aByte
- The byte to be pushed.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.default void transmitAllBytes(byte[] aBytes) throws IOException
aBytes
- The byte to be pushed.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.void transmitBytes(byte[] aBytes, int aOffset, int aLength) throws IOException
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.Copyright © 2021. All rights reserved.