Home | History | Annotate | Download | only in native
      1 /* This file was generated from java/util/zip/ZipFile.java and is licensed
      2  * under the same terms. The copyright and license information for
      3  * java/util/zip/ZipFile.java follows.
      4  *
      5  * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
      6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
      7  *
      8  * This code is free software; you can redistribute it and/or modify it
      9  * under the terms of the GNU General Public License version 2 only, as
     10  * published by the Free Software Foundation.  Oracle designates this
     11  * particular file as subject to the "Classpath" exception as provided
     12  * by Oracle in the LICENSE file that accompanied this code.
     13  *
     14  * This code is distributed in the hope that it will be useful, but WITHOUT
     15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     16  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     17  * version 2 for more details (a copy is included in the LICENSE file that
     18  * accompanied this code).
     19  *
     20  * You should have received a copy of the GNU General Public License version
     21  * 2 along with this work; if not, write to the Free Software Foundation,
     22  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     23  *
     24  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     25  * or visit www.oracle.com if you need additional information or have any
     26  * questions.
     27  */
     28 /* DO NOT EDIT THIS FILE - it is machine generated */
     29 #include <jni.h>
     30 /* Header for class java_util_zip_ZipFile */
     31 
     32 #ifndef _Included_java_util_zip_ZipFile
     33 #define _Included_java_util_zip_ZipFile
     34 #ifdef __cplusplus
     35 extern "C" {
     36 #endif
     37 #undef java_util_zip_ZipFile_STORED
     38 #define java_util_zip_ZipFile_STORED 0L
     39 #undef java_util_zip_ZipFile_DEFLATED
     40 #define java_util_zip_ZipFile_DEFLATED 8L
     41 #undef java_util_zip_ZipFile_OPEN_READ
     42 #define java_util_zip_ZipFile_OPEN_READ 1L
     43 #undef java_util_zip_ZipFile_OPEN_DELETE
     44 #define java_util_zip_ZipFile_OPEN_DELETE 4L
     45 #undef java_util_zip_ZipFile_JZENTRY_NAME
     46 #define java_util_zip_ZipFile_JZENTRY_NAME 0L
     47 #undef java_util_zip_ZipFile_JZENTRY_EXTRA
     48 #define java_util_zip_ZipFile_JZENTRY_EXTRA 1L
     49 #undef java_util_zip_ZipFile_JZENTRY_COMMENT
     50 #define java_util_zip_ZipFile_JZENTRY_COMMENT 2L
     51 
     52 /*
     53  * Class:     java_util_zip_ZipFile
     54  * Method:    getEntry
     55  * Signature: (J[BZ)J
     56  */
     57 JNIEXPORT jlong JNICALL ZipFile_getEntry
     58   (JNIEnv *, jclass, jlong, jbyteArray, jboolean);
     59 
     60 /*
     61  * Class:     java_util_zip_ZipFile
     62  * Method:    freeEntry
     63  * Signature: (JJ)V
     64  */
     65 JNIEXPORT void JNICALL ZipFile_freeEntry
     66   (JNIEnv *, jclass, jlong, jlong);
     67 
     68 /*
     69  * Class:     java_util_zip_ZipFile
     70  * Method:    getNextEntry
     71  * Signature: (JI)J
     72  */
     73 JNIEXPORT jlong JNICALL ZipFile_getNextEntry
     74   (JNIEnv *, jclass, jlong, jint);
     75 
     76 /*
     77  * Class:     java_util_zip_ZipFile
     78  * Method:    close
     79  * Signature: (J)V
     80  */
     81 JNIEXPORT void JNICALL ZipFile_close
     82   (JNIEnv *, jclass, jlong);
     83 
     84 /*
     85  * Class:     java_util_zip_ZipFile
     86  * Method:    open
     87  * Signature: (Ljava/lang/String;IJZ)J
     88  */
     89 JNIEXPORT jlong JNICALL ZipFile_open
     90   (JNIEnv *, jclass, jstring, jint, jlong, jboolean);
     91 
     92 /*
     93  * Class:     java_util_zip_ZipFile
     94  * Method:    getTotal
     95  * Signature: (J)I
     96  */
     97 JNIEXPORT jint JNICALL ZipFile_getTotal
     98   (JNIEnv *, jclass, jlong);
     99 
    100 /*
    101  * Class:     java_util_zip_ZipFile
    102  * Method:    startsWithLOC
    103  * Signature: (J)Z
    104  */
    105 JNIEXPORT jboolean JNICALL ZipFile_startsWithLOC
    106   (JNIEnv *, jclass, jlong);
    107 
    108 /*
    109  * Class:     java_util_zip_ZipFile
    110  * Method:    read
    111  * Signature: (JJJ[BII)I
    112  */
    113 JNIEXPORT jint JNICALL ZipFile_read
    114   (JNIEnv *, jclass, jlong, jlong, jlong, jbyteArray, jint, jint);
    115 
    116 /*
    117  * Class:     java_util_zip_ZipFile
    118  * Method:    getEntryTime
    119  * Signature: (J)J
    120  */
    121 JNIEXPORT jlong JNICALL ZipFile_getEntryTime
    122   (JNIEnv *, jclass, jlong);
    123 
    124 /*
    125  * Class:     java_util_zip_ZipFile
    126  * Method:    getEntryCrc
    127  * Signature: (J)J
    128  */
    129 JNIEXPORT jlong JNICALL ZipFile_getEntryCrc
    130   (JNIEnv *, jclass, jlong);
    131 
    132 /*
    133  * Class:     java_util_zip_ZipFile
    134  * Method:    getEntryCSize
    135  * Signature: (J)J
    136  */
    137 JNIEXPORT jlong JNICALL ZipFile_getEntryCSize
    138   (JNIEnv *, jclass, jlong);
    139 
    140 /*
    141  * Class:     java_util_zip_ZipFile
    142  * Method:    getEntrySize
    143  * Signature: (J)J
    144  */
    145 JNIEXPORT jlong JNICALL ZipFile_getEntrySize
    146   (JNIEnv *, jclass, jlong);
    147 
    148 /*
    149  * Class:     java_util_zip_ZipFile
    150  * Method:    getEntryMethod
    151  * Signature: (J)I
    152  */
    153 JNIEXPORT jint JNICALL ZipFile_getEntryMethod
    154   (JNIEnv *, jclass, jlong);
    155 
    156 /*
    157  * Class:     java_util_zip_ZipFile
    158  * Method:    getEntryFlag
    159  * Signature: (J)I
    160  */
    161 JNIEXPORT jint JNICALL ZipFile_getEntryFlag
    162   (JNIEnv *, jclass, jlong);
    163 
    164 /*
    165  * Class:     java_util_zip_ZipFile
    166  * Method:    getCommentBytes
    167  * Signature: (J)[B
    168  */
    169 JNIEXPORT jbyteArray JNICALL ZipFile_getCommentBytes
    170   (JNIEnv *, jclass, jlong);
    171 
    172 /*
    173  * Class:     java_util_zip_ZipFile
    174  * Method:    getEntryBytes
    175  * Signature: (JI)[B
    176  */
    177 JNIEXPORT jbyteArray JNICALL ZipFile_getEntryBytes
    178   (JNIEnv *, jclass, jlong, jint);
    179 
    180 /*
    181  * Class:     java_util_zip_ZipFile
    182  * Method:    getZipMessage
    183  * Signature: (J)Ljava/lang/String;
    184  */
    185 JNIEXPORT jstring JNICALL ZipFile_getZipMessage
    186   (JNIEnv *, jclass, jlong);
    187 
    188 #ifdef __cplusplus
    189 }
    190 #endif
    191 #endif
    192