//System.err.println(foo+" isn't accessible."); /// <exception cref="NSch.JSchException"></exception> private void InitInflater(string method) { if (method.Equals("none")) { inflater = null; return; } string foo = GetConfig(method); if (foo != null) { if (method.Equals("zlib") || (isAuthed && method.Equals("*****@*****.**"))) { try { Type c = Sharpen.Runtime.GetType(foo); inflater = (Compression)(System.Activator.CreateInstance(c)); inflater.Init(Compression.INFLATER, 0); } catch (Exception ee) { throw new JSchException(ee.ToString(), ee); } } } }
/// <exception cref="NSch.JSchException"></exception> private void InitDeflater(string method) { if (method.Equals("none")) { deflater = null; return; } string foo = GetConfig(method); if (foo != null) { if (method.Equals("zlib") || (isAuthed && method.Equals("*****@*****.**"))) { try { Type c = Sharpen.Runtime.GetType(foo); deflater = (Compression)(System.Activator.CreateInstance(c)); int level = 6; try { level = System.Convert.ToInt32(GetConfig("compression_level")); } catch (Exception) { } deflater.Init(Compression.DEFLATER, level); } catch (Exception ee) { throw new JSchException(ee.ToString(), ee); } } } }