aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-10-02 15:46:14 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-10-02 15:46:14 -0700
commit6c0c60f2084be628ddc62f7de3db7c0cd7b41761 (patch)
tree41e8adc220649cf991f8ab84f1b28ec8cab3ca8e
parentb6bfd1505ddccaa337c58bc0073d63ada4f4ad63 (diff)
parentaf4c17e2633aad5585a163e65f4cf34956ec9379 (diff)
downloadapache-commons-compress-6c0c60f2084be628ddc62f7de3db7c0cd7b41761.tar.gz
Makefiles to build apache-commons-compress. am: 9d9b0dd41f am: 14c558973f
am: af4c17e263 Change-Id: Ib66bac4f99b51844fe8fe2957a38292e9c5494d5
-rw-r--r--Android.bp9
-rw-r--r--src/stub/java/com/github/luben/zstd/ZstdInputStream.java31
-rw-r--r--src/stub/java/com/github/luben/zstd/ZstdOutputStream.java46
-rw-r--r--src/stub/java/org/tukaani/xz/LZMAOutputStream.java44
4 files changed, 130 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 000000000..765f8378a
--- /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 000000000..aff84a39c
--- /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 000000000..f6bf90a13
--- /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 000000000..a6d8a9fcb
--- /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();
+ }
+}