MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / initInflater

Method initInflater

java/com/jcraft/jsch/Session.java:2239–2259  ·  view source on GitHub ↗
(String method)

Source from the content-addressed store, hash-verified

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);

Callers 2

readMethod · 0.95
updateKeysMethod · 0.95

Calls 5

getConfigMethod · 0.95
newInstanceMethod · 0.80
initMethod · 0.65
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected