Makefiles to build apache-commons-compress.
am: 9d9b0dd41f

Change-Id: I2a64b34239e1bb72405422aece08f02d43574638
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..765f837
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,9 @@
+java_library {
+    name: "apache-commons-compress",
+    srcs: [
+        "src/main/java/**/*.java",
+        "src/stub/java/**/*.java",
+    ],
+    static_libs: ["xz-java","brotli-java"],
+    sdk_version: "current",
+}
diff --git a/src/stub/java/com/github/luben/zstd/ZstdInputStream.java b/src/stub/java/com/github/luben/zstd/ZstdInputStream.java
new file mode 100644
index 0000000..aff84a3
--- /dev/null
+++ b/src/stub/java/com/github/luben/zstd/ZstdInputStream.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * 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 com.github.luben.zstd;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+public class ZstdInputStream extends InputStream {
+    public ZstdInputStream(InputStream inStream) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    @Override
+    public int read() throws IOException {
+        throw new UnsupportedOperationException();
+    }
+}
diff --git a/src/stub/java/com/github/luben/zstd/ZstdOutputStream.java b/src/stub/java/com/github/luben/zstd/ZstdOutputStream.java
new file mode 100644
index 0000000..f6bf90a
--- /dev/null
+++ b/src/stub/java/com/github/luben/zstd/ZstdOutputStream.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * 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 com.github.luben.zstd;
+
+import java.io.IOException;
+import java.io.OutputStream;
+
+public class ZstdOutputStream extends OutputStream {
+
+    public ZstdOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush,
+        boolean useChecksum) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    public ZstdOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush)
+        throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    public ZstdOutputStream(final OutputStream outStream, int level) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    public ZstdOutputStream(final OutputStream outStream) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    @Override
+    public void write(int b) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+}
diff --git a/src/stub/java/org/tukaani/xz/LZMAOutputStream.java b/src/stub/java/org/tukaani/xz/LZMAOutputStream.java
new file mode 100644
index 0000000..a6d8a9f
--- /dev/null
+++ b/src/stub/java/org/tukaani/xz/LZMAOutputStream.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * 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.tukaani.xz;
+
+import org.tukaani.xz.LZMA2Options;
+
+import java.io.IOException;
+import java.io.OutputStream;
+
+public class LZMAOutputStream extends OutputStream {
+
+    public LZMAOutputStream(final OutputStream outStream, LZMA2Options options, boolean unknown)
+            throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    public LZMAOutputStream(final OutputStream outStream, LZMA2Options options, int unknown)
+            throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    @Override
+    public void write(int b) throws IOException {
+        throw new UnsupportedOperationException();
+    }
+
+    public void finish() {
+        throw new UnsupportedOperationException();
+    }
+}