java.lang.Object
java.io.OutputStream
io.helidon.common.reactive.MultiFromOutputStream
- All Implemented Interfaces:
Multi<ByteBuffer>,Subscribable<ByteBuffer>,Closeable,Flushable,AutoCloseable,Flow.Publisher<ByteBuffer>
- Direct Known Subclasses:
OutputStreamMulti
@Deprecated(since="2.0.0",
forRemoval=true)
public class MultiFromOutputStream
extends OutputStream
implements Multi<ByteBuffer>
Deprecated, for removal: This API element is subject to removal in a future version.
Output stream that
Flow.Publisher publishes any data written to it as ByteBuffer
events.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version.Create new output stream thatFlow.Publisherpublishes any data written to it asByteBufferevents. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.voidflush()Deprecated, for removal: This API element is subject to removal in a future version.Send empty buffer as an indication of a user-requested flush.onRequest(BiConsumer<Long, Long> requestCallback) Deprecated, for removal: This API element is subject to removal in a future version.Callback executed when request signal from downstream arrive.voidsubscribe(Flow.Subscriber<? super ByteBuffer> subscriber) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(byte[] b) Deprecated, for removal: This API element is subject to removal in a future version.Writes byte array after possibly publishing internal buffer for single-byte writes.voidwrite(byte[] b, int off, int len) Deprecated, for removal: This API element is subject to removal in a future version.Writes byte array given an offset and length after possibly publishing internal buffer for single-byte writes.voidwrite(int b) Deprecated, for removal: This API element is subject to removal in a future version.Attempts to buffer single-byte reads until buffer is full.Methods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.reactive.Multi
collect, collect, collectList, collectStream, compose, defaultIfEmpty, defaultIfEmpty, distinct, dropWhile, filter, first, flatMap, flatMap, flatMapCompletionStage, flatMapIterable, flatMapIterable, flatMapOptional, forEach, forEachCompletionStage, ifEmpty, ignoreElements, limit, log, log, log, log, map, observeOn, observeOn, onCancel, onComplete, onCompleteResume, onCompleteResumeWith, onError, onErrorResume, onErrorResumeWith, onTerminate, peek, reduce, reduce, retry, retry, retryWhen, skip, switchIfEmpty, takeUntil, takeWhile, timeout, timeout, toMethods inherited from interface io.helidon.common.reactive.Subscribable
subscribe, subscribe, subscribe, subscribe
-
Constructor Details
-
MultiFromOutputStream
protected MultiFromOutputStream()Deprecated, for removal: This API element is subject to removal in a future version.Create new output stream thatFlow.Publisherpublishes any data written to it asByteBufferevents.
-
-
Method Details
-
onRequest
Deprecated, for removal: This API element is subject to removal in a future version.Callback executed when request signal from downstream arrive.- param
nthe requested count. - param
demandthe current total cumulative requested count, ranges between [0,Long.MAX_VALUE] where the max indicates that this publisher is unbounded.
- Parameters:
requestCallback- to be executed- Returns:
- this OutputStreamMulti
- param
-
subscribe
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
subscribein interfaceFlow.Publisher<ByteBuffer>
-
write
Deprecated, for removal: This API element is subject to removal in a future version.Writes byte array after possibly publishing internal buffer for single-byte writes.- Overrides:
writein classOutputStream- Parameters:
b- Byte array.- Throws:
IOException- If error while writing.
-
write
Deprecated, for removal: This API element is subject to removal in a future version.Writes byte array given an offset and length after possibly publishing internal buffer for single-byte writes.- Overrides:
writein classOutputStream- Parameters:
b- Byte array.- Throws:
IOException- If error while writing.
-
write
Deprecated, for removal: This API element is subject to removal in a future version.Attempts to buffer single-byte reads until buffer is full.- Specified by:
writein classOutputStream- Parameters:
b- Byte to read.- Throws:
IOException- If error while writing.
-
close
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
Deprecated, for removal: This API element is subject to removal in a future version.Send empty buffer as an indication of a user-requested flush.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException- If error while writing.
-
OutputStreamMultiinstead