diff --git a/build.gradle b/build.gradle index 502245fd0..6eeea45c5 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,6 @@ allprojects { ':smack-android', ':smack-android-extensions', ':smack-bosh', - ':smack-compression-jzlib', ':smack-debug', ':smack-debug-slf4j', ':smack-java7', diff --git a/settings.gradle b/settings.gradle index 0f84a8753..37bbbb004 100644 --- a/settings.gradle +++ b/settings.gradle @@ -16,7 +16,6 @@ include 'smack-core', 'smack-resolver-javax', 'smack-sasl-javax', 'smack-sasl-provided', - 'smack-compression-jzlib', 'smack-legacy', 'smack-jingle-old', 'smack-bosh', diff --git a/smack-compression-jzlib/build.gradle b/smack-compression-jzlib/build.gradle deleted file mode 100644 index b9aeb8b84..000000000 --- a/smack-compression-jzlib/build.gradle +++ /dev/null @@ -1,8 +0,0 @@ -description = """\ -Compression with jzlib -Allow to compress the XMPP stream with help of jzlib.""" - -dependencies { - compile project(':smack-core') - compile 'com.jcraft:jzlib:[1.1,1.2)' -} diff --git a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/JzlibInputOutputStream.java b/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/JzlibInputOutputStream.java deleted file mode 100644 index ae231d5f5..000000000 --- a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/JzlibInputOutputStream.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * - * Copyright 2013-2014 Florian Schmaus - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jivesoftware.smack.compression.jzlib; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; - -import org.jivesoftware.smack.SmackConfiguration; -import org.jivesoftware.smack.compression.XMPPInputOutputStream; - -import com.jcraft.jzlib.DeflaterOutputStream; -import com.jcraft.jzlib.InflaterInputStream; - -/** - * This class provides XMPP "zlib" compression with the help of JZLib. - * - * @author Florian Schmaus - * @see JZLib - * - */ -public class JzlibInputOutputStream extends XMPPInputOutputStream { - - static { - SmackConfiguration.addCompressionHandler(new JzlibInputOutputStream()); - } - - public JzlibInputOutputStream() { - super("zlib"); - } - - @Override - public boolean isSupported() { - return true; - } - - @Override - public InputStream getInputStream(InputStream inputStream) throws IOException { - final InflaterInputStream is = new InflaterInputStream(inputStream); - - return is; - } - - @Override - public OutputStream getOutputStream(OutputStream outputStream) throws IOException { - final DeflaterOutputStream os = new DeflaterOutputStream(outputStream); - if (flushMethod == FlushMethod.SYNC_FLUSH) { - os.setSyncFlush(true); - } - - return os; - } -} diff --git a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/package-info.java b/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/package-info.java deleted file mode 100644 index b598d0ddd..000000000 --- a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/jzlib/package-info.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Copyright 2015 Florian Schmaus - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Support for XMPP stream compression (XEP-138) via JZlib. - */ -package org.jivesoftware.smack.compression.jzlib; diff --git a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/package-info.java b/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/package-info.java deleted file mode 120000 index c88ae8f0b..000000000 --- a/smack-compression-jzlib/src/main/java/org/jivesoftware/smack/compression/package-info.java +++ /dev/null @@ -1 +0,0 @@ -../../../../../../../../smack-core/src/main/java/org/jivesoftware/smack/compression/package-info.java \ No newline at end of file