@Override
    public void write(int c) {
        super.write(c);
        try {
            response.getWriter().write(c);
        } catch (IOException e) {
            e.printStackTrace();
            this.setError();
        }
    }
Wrapper Writer
When writing character data, write the data into the output stream of ByteArrayOutputStream and HttpServletResponse object at the same time.
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/trace/WrapperWriter.java