diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-10-02 14:05:43 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-02 14:05:43 -0700 |
commit | 14c558973fadd298cd0c00f724c51c09a1ef90fa (patch) | |
tree | 41e8adc220649cf991f8ab84f1b28ec8cab3ca8e | |
parent | 5158a15215b268e37d531bd4667ec8093d5d08b7 (diff) | |
parent | 9d9b0dd41f59fd33028bb057c02f0d164e9af8be (diff) | |
download | apache-commons-compress-14c558973fadd298cd0c00f724c51c09a1ef90fa.tar.gz |
Makefiles to build apache-commons-compress.android-wear-8.0.0_r2
am: 9d9b0dd41f
Change-Id: I2a64b34239e1bb72405422aece08f02d43574638
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | src/stub/java/com/github/luben/zstd/ZstdInputStream.java | 31 | ||||
-rw-r--r-- | src/stub/java/com/github/luben/zstd/ZstdOutputStream.java | 46 | ||||
-rw-r--r-- | src/stub/java/org/tukaani/xz/LZMAOutputStream.java | 44 |
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(); + } +} |