Package io.micronaut.http.netty
Class PublisherAsStream
java.lang.Object
java.io.InputStream
io.micronaut.http.netty.PublisherAsStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Transform a
PublisherAsBlocking
of buffers into a InputStream
.- Since:
- 4.2.0
- Author:
- Jonas Konrad
-
Constructor Summary
ConstructorDescriptionPublisherAsStream
(PublisherAsBlocking<io.netty.buffer.ByteBuf> publisherAsBlocking) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
PublisherAsStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(@NonNull @io.micronaut.core.annotation.NonNull byte[] b, int off, int len) throws IOException - Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-