public abstract class GenericStream<T> extends java.lang.Object implements org.vertx.java.core.streams.ReadStream<GenericStream<T>>
Modifier and Type | Class and Description |
---|---|
static class |
GenericStream.State |
static class |
GenericStream.StreamState<T> |
Constructor and Description |
---|
GenericStream() |
Modifier and Type | Method and Description |
---|---|
GenericStream<T> |
dataHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> dataHandler) |
GenericStream<T> |
endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler) |
GenericStream<T> |
exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> exceptionHandler) |
protected abstract GenericStream.StreamState<T> |
next() |
GenericStream<T> |
pause() |
GenericStream<T> |
resume() |
protected abstract org.vertx.java.core.buffer.Buffer |
serialize(T n) |
static <T> Stream |
simpleValue(T value,
java.util.function.Function<T,byte[]> toByteArray) |
static void |
streamToFile(Stream stream,
java.io.File file) |
static java.lang.String |
streamToString(Stream stream) |
public GenericStream<T> dataHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> dataHandler)
dataHandler
in interface org.vertx.java.core.streams.ReadSupport<GenericStream<T>,org.vertx.java.core.buffer.Buffer>
public GenericStream<T> pause()
pause
in interface org.vertx.java.core.streams.ReadSupport<GenericStream<T>,org.vertx.java.core.buffer.Buffer>
public GenericStream<T> resume()
resume
in interface org.vertx.java.core.streams.ReadSupport<GenericStream<T>,org.vertx.java.core.buffer.Buffer>
public GenericStream<T> exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> exceptionHandler)
exceptionHandler
in interface org.vertx.java.core.streams.ExceptionSupport<GenericStream<T>>
public GenericStream<T> endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler)
endHandler
in interface org.vertx.java.core.streams.ReadStream<GenericStream<T>>
protected abstract org.vertx.java.core.buffer.Buffer serialize(T n) throws java.lang.Exception
java.lang.Exception
protected abstract GenericStream.StreamState<T> next() throws java.lang.Exception
java.lang.Exception
public static java.lang.String streamToString(Stream stream)
public static void streamToFile(Stream stream, java.io.File file)
public static <T> Stream simpleValue(T value, java.util.function.Function<T,byte[]> toByteArray)
Copyright © 2021. All Rights Reserved.