()
| 179 | } |
| 180 | |
| 181 | private void initStreams() throws IOException { |
| 182 | boolean quote = PropUtil.getBooleanProperty(props, |
| 183 | "mail.debug.quote", false); |
| 184 | traceInput = |
| 185 | new TraceInputStream(socket.getInputStream(), traceLogger); |
| 186 | traceInput.setQuote(quote); |
| 187 | |
| 188 | traceOutput = |
| 189 | new TraceOutputStream(socket.getOutputStream(), traceLogger); |
| 190 | traceOutput.setQuote(quote); |
| 191 | |
| 192 | // should be US-ASCII, but not all JDK's support it so use iso-8859-1 |
| 193 | input = new BufferedReader(new InputStreamReader(traceInput, |
| 194 | "iso-8859-1")); |
| 195 | output = new PrintWriter( |
| 196 | new BufferedWriter( |
| 197 | new OutputStreamWriter(traceOutput, "iso-8859-1"))); |
| 198 | } |
| 199 | |
| 200 | @Override |
| 201 | protected void finalize() throws Throwable { |
no test coverage detected