(String method)
| 2237 | } |
| 2238 | } |
| 2239 | private void initInflater(String method) throws JSchException{ |
| 2240 | if(method.equals("none")){ |
| 2241 | inflater=null; |
| 2242 | return; |
| 2243 | } |
| 2244 | String foo=getConfig(method); |
| 2245 | if(foo!=null){ |
| 2246 | if(method.equals("zlib") || |
| 2247 | (isAuthed && method.equals("zlib@openssh.com"))){ |
| 2248 | try{ |
| 2249 | Class c=Class.forName(foo); |
| 2250 | inflater=(Compression)(c.newInstance()); |
| 2251 | inflater.init(Compression.INFLATER, 0); |
| 2252 | } |
| 2253 | catch(Exception ee){ |
| 2254 | throw new JSchException(ee.toString(), ee); |
| 2255 | //System.err.println(foo+" isn't accessible."); |
| 2256 | } |
| 2257 | } |
| 2258 | } |
| 2259 | } |
| 2260 | |
| 2261 | void addChannel(Channel channel){ |
| 2262 | channel.setSession(this); |
no test coverage detected