R - the result typepublic class ByteArrayPipeline<R> extends AbstractObjectIntPipeline<byte[],R>
byte arrays and emits each byte as an int.| Constructor and Description |
|---|
ByteArrayPipeline(IntAcceptor<? extends R> downstream)
Construct a
ByteArrayPipeline with the given downstream IntAcceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(byte[] value,
int offset,
int length)
Accept a
byte array with the specified offset and length. |
void |
acceptObject(byte[] value)
Accept a
byte array, after closed check and test for end of data. |
void |
acceptObject(byte[] value,
int offset,
int length)
Accept a
byte array with the specified offset and length, after closed check and test for end of
data. |
close, emit, flush, getDownstreamaccept, acceptisClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResult, isComplete, isStageCompleteisClosed, safeClosepublic ByteArrayPipeline(IntAcceptor<? extends R> downstream)
ByteArrayPipeline with the given downstream IntAcceptor.downstream - the IntAcceptorpublic void acceptObject(byte[] value)
byte array, after closed check and test for end of data. Emit each byte to the
downstream IntAcceptor.acceptObject in class AbstractAcceptor<byte[],R>value - the input valuepublic void accept(byte[] value,
int offset,
int length)
byte array with the specified offset and length. Check for pipeline already closed, and handle
end of data. Emit each byte to the downstream IntAcceptor.value - the input valueoffset - the offset from the start of the bufferlength - the length (number of bytes) to processIllegalStateException - if the ByteArrayPipeline has already been closedpublic void acceptObject(byte[] value,
int offset,
int length)
byte array with the specified offset and length, after closed check and test for end of
data. Emit each byte to the downstream IntAcceptor.value - the input valueoffset - the offset from the start of the bufferlength - the length (number of bytes) to processCopyright © 2025. All rights reserved.