Return a PrintWriter that can be used to render error messages, regardless of whether a stream or writer has already been acquired. @return Writer which can be used for error reports. Returns null if the output buffer is not in a new state (i.e., data has been written or headers
()
| 454 | * @exception IOException if an input/output error occurs |
| 455 | */ |
| 456 | public PrintWriter getReporter() throws IOException { |
| 457 | if (outputBuffer.isNew()) { |
| 458 | outputBuffer.checkConverter(); |
| 459 | if (writer == null) { |
| 460 | writer = new CoyoteWriter(outputBuffer); |
| 461 | } |
| 462 | return writer; |
| 463 | } else { |
| 464 | return null; |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | |
| 469 | // ------------------------------------------------ ServletResponse Methods |
no test coverage detected