Class OfInputStream

java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.supplier.AbstractChannelSupplier<io.activej.bytebuf.ByteBuf>
io.activej.csp.supplier.impl.OfInputStream
All Implemented Interfaces:
io.activej.async.process.AsyncCloseable, ChannelSupplier<io.activej.bytebuf.ByteBuf>, io.activej.reactor.Reactive

public final class OfInputStream extends AbstractChannelSupplier<io.activej.bytebuf.ByteBuf>
  • Field Details

    • executor

      public final Executor executor
    • bufSize

      public final int bufSize
    • inputStream

      public final InputStream inputStream
  • Constructor Details

    • OfInputStream

      public OfInputStream(Executor executor, int bufSize, InputStream inputStream)
  • Method Details

    • doGet

      protected io.activej.promise.Promise<io.activej.bytebuf.ByteBuf> doGet()
      Specified by:
      doGet in class AbstractChannelSupplier<io.activej.bytebuf.ByteBuf>
    • onClosed

      protected void onClosed(Exception e)
      Overrides:
      onClosed in class io.activej.async.process.AbstractAsyncCloseable