how to clear contents of a PrintWriter after writing
问题 Good evening, i want to know how to clear the data written to a PrintWriter, i.e. is it possible to remove the data from a PrintWriter after printing? here in this servlet i print some text to the response and at the line denoted by # i want to remove all the previously printed data and print new stuff: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); String uName = request