Class VertxStream.ReadStreamStream

java.lang.Object
net.bluemind.core.rest.vertx.VertxStream.ReadStreamStream
All Implemented Interfaces:
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase, Stream
Enclosing class:
VertxStream

public static class VertxStream.ReadStreamStream extends Object implements Stream, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
  • Constructor Details

    • ReadStreamStream

      public ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate)
    • ReadStreamStream

      public ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate, io.vertx.core.Handler<Void> endHook)
    • ReadStreamStream

      public ReadStreamStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> delegate, Optional<String> mime, Optional<String> charset, Optional<String> filename, io.vertx.core.Handler<Void> endHook)
  • Method Details

    • charset

      public Optional<String> charset()
      Description copied from interface: Stream
      A non empty Optional will alter the Content-Type header when the Stream is sent over http
      Specified by:
      charset in interface Stream
      Returns:
      an optional charset name (eg. UTF-8)
    • mime

      public Optional<String> mime()
      Description copied from interface: Stream
      A non empty Optional will alter the Content-Type header when the Stream is sent over http
      Specified by:
      mime in interface Stream
      Returns:
      an optional mime type (eg. text/html)
    • fileName

      public Optional<String> fileName()
      Description copied from interface: Stream
      A non empty Optional will add a content-disposition filename header when the Stream is sent over http. Only ascii chars will be preserved when the filename is sent.
      Specified by:
      fileName in interface Stream
      Returns:
      an optional filename
    • endHandler

      public VertxStream.ReadStreamStream endHandler(io.vertx.core.Handler<Void> endHandler)
      Specified by:
      endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • handler

      public VertxStream.ReadStreamStream handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
      Specified by:
      handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • pause

      Specified by:
      pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • resume

      Specified by:
      resume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • exceptionHandler

      public VertxStream.ReadStreamStream exceptionHandler(io.vertx.core.Handler<Throwable> handler)
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
    • fetch

      public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount)
      Specified by:
      fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • toString

      public String toString()
      Overrides:
      toString in class Object