Mercurial > 510Connectbot
annotate app/src/main/java/ch/ethz/ssh2/compression/Compressor.java @ 470:2cc170e3fc9b stable-1.9.3-8
audible bell checkbox enables/disables bell volume setting; monitor init string is now a url socket://target/initstring
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 04 Oct 2019 16:44:44 -0700 |
parents | d29cce60f393 |
children |
rev | line source |
---|---|
326
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 /* |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 * ConnectBot: simple, powerful, open-source SSH client for Android |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 * Copyright 2007 Kenny Root, Jeffrey Sharkey |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 * Licensed under the Apache License, Version 2.0 (the "License"); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 * you may not use this file except in compliance with the License. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 * You may obtain a copy of the License at |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 * http://www.apache.org/licenses/LICENSE-2.0 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 * Unless required by applicable law or agreed to in writing, software |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 * distributed under the License is distributed on an "AS IS" BASIS, |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 * See the License for the specific language governing permissions and |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 * limitations under the License. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 */ |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 package ch.ethz.ssh2.compression; |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 /** |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 * @author Kenny Root |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 */ |
327
9a657362519c
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
326
diff
changeset
|
24 public interface Compressor { |
326
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 int getBufferSize(); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 int compress(byte[] buf, int start, int len, byte[] output); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 byte[] uncompress(byte[] buf, int start, int[] len); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 boolean canCompressPreauth(); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 } |