writer.print("\nbegin\r\n");
writer.print("\nend\r\n");
    private void writeEnd() throws IOException {        PrintStream writer = new PrintStream(out);        // write out the stream with a CRLF marker        writer.print("\nbegin\r\n");        writer.flush();    }