Package ru.tinkoff.kora.common.util
Class ByteBufferFluxInputStream
java.lang.Object
java.io.InputStream
ru.tinkoff.kora.common.util.ByteBufferFluxInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,org.reactivestreams.Subscriber<ByteBuffer>,reactor.core.CoreSubscriber<ByteBuffer>
public class ByteBufferFluxInputStream
extends InputStream
implements reactor.core.CoreSubscriber<ByteBuffer>
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferFluxInputStream(reactor.core.publisher.Flux<ByteBuffer> byteBufferFlux) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()reactor.util.context.ContextvoidvoidvoidonNext(ByteBuffer byteBuffer) voidonSubscribe(org.reactivestreams.Subscription s) intread()intread(byte[] b, int off, int len) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferFluxInputStream
-
-
Method Details
-
read
public int read()- Specified by:
readin classInputStream
-
read
public int read(@Nonnull byte[] b, int off, int len) - Overrides:
readin classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) - Specified by:
onSubscribein interfacereactor.core.CoreSubscriber<ByteBuffer>- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
currentContext
@Nonnull public reactor.util.context.Context currentContext()- Specified by:
currentContextin interfacereactor.core.CoreSubscriber<ByteBuffer>
-