Class ByteRanger
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.transformer.AbstractChannelTransformer<ByteRanger,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
io.activej.csp.process.transformer.impl.ByteRanger
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.ReactiveProcess,HasChannelInput<io.activej.bytebuf.ByteBuf>,HasChannelOutput<io.activej.bytebuf.ByteBuf>,WithChannelInput<ByteRanger,,io.activej.bytebuf.ByteBuf> WithChannelOutput<ByteRanger,,io.activej.bytebuf.ByteBuf> WithChannelTransformer<ByteRanger,,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf> ChannelConsumerTransformer<io.activej.bytebuf.ByteBuf,,ChannelConsumer<io.activej.bytebuf.ByteBuf>> ChannelSupplierTransformer<io.activej.bytebuf.ByteBuf,,ChannelSupplier<io.activej.bytebuf.ByteBuf>> ChannelTransformer<io.activej.bytebuf.ByteBuf,,io.activej.bytebuf.ByteBuf> io.activej.reactor.Reactive
public final class ByteRanger
extends AbstractChannelTransformer<ByteRanger,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
Drops exactly N bytes from a csp stream of byte buffers and limits that stream to exactly M bytes in length
-
Nested Class Summary
Nested classes/interfaces inherited from class io.activej.csp.process.AbstractCommunicatingProcess
AbstractCommunicatingProcess.SanitizedBinaryChannelSupplier -
Field Summary
FieldsFields inherited from class io.activej.csp.process.transformer.AbstractChannelTransformer
input, outputFields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.activej.csp.process.transformer.AbstractChannelTransformer
beforeProcess, doClose, doProcess, getInput, getOutput, onCleanup, onProcessFinish, onProcessStart, send, sendEndOfStreamMethods inherited from class io.activej.csp.process.AbstractCommunicatingProcess
afterProcess, close, closeEx, completeProcess, completeProcessEx, doSanitize, getProcessCompletion, isProcessComplete, isProcessStarted, sanitize, sanitize, sanitize, sanitize, startProcessMethods inherited from class io.activej.reactor.AbstractReactive
getReactorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.reactor.Reactive
getReactorMethods inherited from interface io.activej.csp.dsl.WithChannelInput
withInputMethods inherited from interface io.activej.csp.dsl.WithChannelOutput
withOutputMethods inherited from interface io.activej.csp.dsl.WithChannelTransformer
transform, transform
-
Field Details
-
offset
public final long offset -
endOffset
public final long endOffset -
position
public long position
-
-
Constructor Details
-
ByteRanger
public ByteRanger(long offset, long length)
-
-
Method Details
-
onItem
- Specified by:
onItemin classAbstractChannelTransformer<ByteRanger,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-