()
| 208 | return in; |
| 209 | } |
| 210 | public InputStream getExtInputStream() throws IOException { |
| 211 | int max_input_buffer_size = 32*1024; |
| 212 | try { |
| 213 | max_input_buffer_size = |
| 214 | Integer.parseInt(getSession().getConfig("max_input_buffer_size")); |
| 215 | } |
| 216 | catch(Exception e){} |
| 217 | PipedInputStream in = |
| 218 | new MyPipedInputStream( |
| 219 | 32*1024, // this value should be customizable. |
| 220 | max_input_buffer_size |
| 221 | ); |
| 222 | boolean resizable = 32*1024<max_input_buffer_size; |
| 223 | io.setExtOutputStream(new PassiveOutputStream(in, resizable), false); |
| 224 | return in; |
| 225 | } |
| 226 | public OutputStream getOutputStream() throws IOException { |
| 227 | |
| 228 | final Channel channel=this; |
no test coverage detected