private void handleData(Buffer buff) {
        Handler<Buffer> handler;
        synchronized (this) {
            handler = dataHandler;
        }
        if (handler != null) {
            handler.handle(buff);
        }
    }
Implementation of vertx {@link io.vertx.core.streams.ReadStream} that wraps {@link java.io.InputStream}.
server/src/main/java/com/epam/aidial/core/server/vertx/stream/InputStreamReader.java