presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayOutputStream.java/ByteArrayOutputStream/reset
class ByteArrayOutputStream:    @Override
    public void reset()
    {
        closed = false;
        buffer.reset();
        checkpoints.clear();
    }