Code example for PrintWriter

Methods: write

0
        FileSharing sharing = FileSharing.getSingleton();
        String id = sharing.hash("mic");
        sharing.addFeedEntry(id, text, attachment);
 
        PrintWriter outp = resp.getWriter();
        outp.write("<html>");
        outp.write("<head><title>FileUpload page</title></head>");
        outp.write("<body>");
        outp.write("<h2>" + text + "</h2>");
        outp.write("</body>");
        outp.write("</html>");
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE