1
2
3
4
5
6
7 package com.atlassian.jira.servlet;
8
9 import java.io.CharArrayWriter;
10 import java.io.IOException;
11
12 import javax.servlet.ServletOutputStream;
13
14
15
16
17
18
19
20 public class BufferedServletOutputStream extends ServletOutputStream {
21
22 private CharArrayWriter output;
23
24
25
26
27 public BufferedServletOutputStream() {
28 super();
29 output = new CharArrayWriter();
30 }
31
32
33
34
35 public void write(int b) throws IOException {
36 output.write(b);
37 }
38
39 public String toString() {
40 return output.toString();
41 }
42
43 }