io.helidon.common.reactive.Flow.Publisher<RequestChunk>public class PublisherInputStream extends java.io.InputStream implements io.helidon.common.reactive.Flow.Publisher<RequestChunk>
subscriber that can subscribe to a source of ByteBuffer data chunks and then make
them available for consumption via standard blocking InputStream API.| Constructor | Description |
|---|---|
PublisherInputStream(io.helidon.common.reactive.Flow.Publisher<RequestChunk> originalPublisher) |
Wraps the supplied publisher and adds a blocking
InputStream based nature. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
read() |
|
void |
subscribe(io.helidon.common.reactive.Flow.Subscriber<? super RequestChunk> subscriber) |
public PublisherInputStream(io.helidon.common.reactive.Flow.Publisher<RequestChunk> originalPublisher)
InputStream based nature.
It is illegal to subscribe to the returned publisher.originalPublisher - the original publisher to wrappublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void subscribe(io.helidon.common.reactive.Flow.Subscriber<? super RequestChunk> subscriber)
subscribe in interface io.helidon.common.reactive.Flow.Publisher<RequestChunk>Copyright © 2018 Oracle Corporation. All rights reserved.