()
| 109 | } |
| 110 | |
| 111 | private void initOut() throws IOException { |
| 112 | if (out == null) { |
| 113 | try { |
| 114 | out = response.getWriter(); |
| 115 | } catch (IllegalStateException e) { |
| 116 | /* |
| 117 | * At some point in the processing something (most likely the default servlet as the target of a |
| 118 | * <jsp:forward ... /> action) wrote directly to the OutputStream rather than the Writer. Wrap the |
| 119 | * OutputStream in a Writer so the JSP engine can use the Writer it is expecting to use. |
| 120 | */ |
| 121 | out = new PrintWriter(response.getOutputStream()); |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public final void clear() throws IOException { |
no test coverage detected