1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! #[cfg(any(feature = "all", feature = "java-util-jar-JarInputStream"))] __jni_bindgen! { /// public class [JarInputStream](https://developer.android.com/reference/java/util/jar/JarInputStream.html) /// /// Required feature: "java-util-jar-JarInputStream" public class JarInputStream ("java/util/jar/JarInputStream") extends crate::java::util::zip::ZipInputStream { /// [JarInputStream](https://developer.android.com/reference/java/util/jar/JarInputStream.html#JarInputStream(java.io.InputStream)) /// /// Required features: "java-io-InputStream" #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))] pub fn new_InputStream<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::util::jar::JarInputStream>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/io/InputStream;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "<init>\0", "(Ljava/io/InputStream;)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [JarInputStream](https://developer.android.com/reference/java/util/jar/JarInputStream.html#JarInputStream(java.io.InputStream,%20boolean)) /// /// Required features: "java-io-InputStream" #[cfg(any(feature = "all", all(feature = "java-io-InputStream")))] pub fn new_InputStream_boolean<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>, arg1: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::util::jar::JarInputStream>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/io/InputStream;Z)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "<init>\0", "(Ljava/io/InputStream;Z)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getManifest](https://developer.android.com/reference/java/util/jar/JarInputStream.html#getManifest()) /// /// Required features: "java-util-jar-Manifest" #[cfg(any(feature = "all", all(feature = "java-util-jar-Manifest")))] pub fn getManifest<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::jar::Manifest>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "getManifest", .descriptor == "()Ljava/util/jar/Manifest;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "getManifest\0", "()Ljava/util/jar/Manifest;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getNextEntry](https://developer.android.com/reference/java/util/jar/JarInputStream.html#getNextEntry()) /// /// Required features: "java-util-zip-ZipEntry" #[cfg(any(feature = "all", all(feature = "java-util-zip-ZipEntry")))] pub fn getNextEntry<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::zip::ZipEntry>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "getNextEntry", .descriptor == "()Ljava/util/zip/ZipEntry;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "getNextEntry\0", "()Ljava/util/zip/ZipEntry;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getNextJarEntry](https://developer.android.com/reference/java/util/jar/JarInputStream.html#getNextJarEntry()) /// /// Required features: "java-util-jar-JarEntry" #[cfg(any(feature = "all", all(feature = "java-util-jar-JarEntry")))] pub fn getNextJarEntry<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::jar::JarEntry>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "getNextJarEntry", .descriptor == "()Ljava/util/jar/JarEntry;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "getNextJarEntry\0", "()Ljava/util/jar/JarEntry;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [read](https://developer.android.com/reference/java/util/jar/JarInputStream.html#read(byte%5B%5D,%20int,%20int)) pub fn read<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/util/jar/JarInputStream", java.flags == PUBLIC, .name == "read", .descriptor == "([BII)I" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/jar/JarInputStream\0", "read\0", "([BII)I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// public static final [CENATT](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENATT) pub const CENATT : i32 = 36; /// public static final [CENATX](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENATX) pub const CENATX : i32 = 38; /// public static final [CENCOM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENCOM) pub const CENCOM : i32 = 32; /// public static final [CENCRC](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENCRC) pub const CENCRC : i32 = 16; /// public static final [CENDSK](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENDSK) pub const CENDSK : i32 = 34; /// public static final [CENEXT](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENEXT) pub const CENEXT : i32 = 30; /// public static final [CENFLG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENFLG) pub const CENFLG : i32 = 8; /// public static final [CENHDR](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENHDR) pub const CENHDR : i32 = 46; /// public static final [CENHOW](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENHOW) pub const CENHOW : i32 = 10; /// public static final [CENLEN](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENLEN) pub const CENLEN : i32 = 24; /// public static final [CENNAM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENNAM) pub const CENNAM : i32 = 28; /// public static final [CENOFF](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENOFF) pub const CENOFF : i32 = 42; /// public static final [CENSIG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENSIG) pub const CENSIG : i64 = 33639248i64; /// public static final [CENSIZ](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENSIZ) pub const CENSIZ : i32 = 20; /// public static final [CENTIM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENTIM) pub const CENTIM : i32 = 12; /// public static final [CENVEM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENVEM) pub const CENVEM : i32 = 4; /// public static final [CENVER](https://developer.android.com/reference/java/util/jar/JarInputStream.html#CENVER) pub const CENVER : i32 = 6; /// public static final [ENDCOM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDCOM) pub const ENDCOM : i32 = 20; /// public static final [ENDHDR](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDHDR) pub const ENDHDR : i32 = 22; /// public static final [ENDOFF](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDOFF) pub const ENDOFF : i32 = 16; /// public static final [ENDSIG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDSIG) pub const ENDSIG : i64 = 101010256i64; /// public static final [ENDSIZ](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDSIZ) pub const ENDSIZ : i32 = 12; /// public static final [ENDSUB](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDSUB) pub const ENDSUB : i32 = 8; /// public static final [ENDTOT](https://developer.android.com/reference/java/util/jar/JarInputStream.html#ENDTOT) pub const ENDTOT : i32 = 10; /// public static final [EXTCRC](https://developer.android.com/reference/java/util/jar/JarInputStream.html#EXTCRC) pub const EXTCRC : i32 = 4; /// public static final [EXTHDR](https://developer.android.com/reference/java/util/jar/JarInputStream.html#EXTHDR) pub const EXTHDR : i32 = 16; /// public static final [EXTLEN](https://developer.android.com/reference/java/util/jar/JarInputStream.html#EXTLEN) pub const EXTLEN : i32 = 12; /// public static final [EXTSIG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#EXTSIG) pub const EXTSIG : i64 = 134695760i64; /// public static final [EXTSIZ](https://developer.android.com/reference/java/util/jar/JarInputStream.html#EXTSIZ) pub const EXTSIZ : i32 = 8; /// public static final [LOCCRC](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCCRC) pub const LOCCRC : i32 = 14; /// public static final [LOCEXT](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCEXT) pub const LOCEXT : i32 = 28; /// public static final [LOCFLG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCFLG) pub const LOCFLG : i32 = 6; /// public static final [LOCHDR](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCHDR) pub const LOCHDR : i32 = 30; /// public static final [LOCHOW](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCHOW) pub const LOCHOW : i32 = 8; /// public static final [LOCLEN](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCLEN) pub const LOCLEN : i32 = 22; /// public static final [LOCNAM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCNAM) pub const LOCNAM : i32 = 26; /// public static final [LOCSIG](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCSIG) pub const LOCSIG : i64 = 67324752i64; /// public static final [LOCSIZ](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCSIZ) pub const LOCSIZ : i32 = 18; /// public static final [LOCTIM](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCTIM) pub const LOCTIM : i32 = 10; /// public static final [LOCVER](https://developer.android.com/reference/java/util/jar/JarInputStream.html#LOCVER) pub const LOCVER : i32 = 4; } }