private synchronized void handleEnd() {
        close();
        this.dataHandler.handle(Buffer.buffer());
        dataHandler = null;
        this.endHandler.handle(null);
    }
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