public void reset() {
        buffer.clear();
        flushed = false;
    }
Resets the underlying buffer and the flush indicator.
resteasy/src/main/java/com/linecorp/armeria/internal/common/resteasy/ByteBufferBackedOutputStream.java