presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayOutputStream.java/ByteArrayOutputStream/getStreamDataOutput
class ByteArrayOutputStream:    @Override
    public StreamDataOutput getStreamDataOutput(OrcColumnId columnId)
    {
        return new StreamDataOutput(buffer::writeDataTo, new Stream(columnId, streamKind, toIntExact(buffer.getOutputDataSize()), false));
    }