/[classpath]/classpath/native/jni/java-io/java_io_File.c
ViewVC logotype

Diff of /classpath/native/jni/java-io/java_io_File.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by cbj, Mon Feb 18 23:45:52 2002 UTC revision 1.4 by mark, Tue Aug 13 21:15:03 2002 UTC
# Line 56  exception statement from your version. * Line 56  exception statement from your version. *
56  /*************************************************************************/  /*************************************************************************/
57    
58  /*  /*
59   * Method to create an empty file   * Method to create an empty file.
60     *
61     * Class:     java_io_File
62     * Method:    createInternal
63     * Signature: (Ljava/lang/String;)Z
64   */   */
65    
66  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 84  Java_java_io_File_createInternal(JNIEnv Line 88  Java_java_io_File_createInternal(JNIEnv
88  /*************************************************************************/  /*************************************************************************/
89    
90  /*  /*
91   * This method checks to see if we have read permission on a file   * This method checks to see if we have read permission on a file.
92     *
93     * Class:     java_io_File
94     * Method:    canReadInternal
95     * Signature: (Ljava/lang/String;)Z
96   */   */
97    
98  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 114  Java_java_io_File_canReadInternal(JNIEnv Line 122  Java_java_io_File_canReadInternal(JNIEnv
122  /*************************************************************************/  /*************************************************************************/
123    
124  /*  /*
125   * This method checks to see if we have write permission on a file   * This method checks to see if we have write permission on a file.
126     *
127     * Class:     java_io_File
128     * Method:    canWriteInternal
129     * Signature: (Ljava/lang/String;)Z
130   */   */
131    
132  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 144  Java_java_io_File_canWriteInternal(JNIEn Line 156  Java_java_io_File_canWriteInternal(JNIEn
156  /*************************************************************************/  /*************************************************************************/
157    
158  /*  /*
159   * This method makes a file read only   * This method makes a file read only.
160     *
161     * Class:     java_io_File
162     * Method:    setReadOnlyInternal
163     * Signature: (Ljava/lang/String;)Z
164   */   */
165    
166  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 184  Java_java_io_File_setReadOnlyInternal(JN Line 200  Java_java_io_File_setReadOnlyInternal(JN
200  /*************************************************************************/  /*************************************************************************/
201    
202  /*  /*
203   * This method checks to see if a file exists   * This method checks to see if a file exists.
204     *
205     * Class:     java_io_File
206     * Method:    existsInternal
207     * Signature: (Ljava/lang/String;)Z
208   */   */
209    
210  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 212  Java_java_io_File_existsInternal(JNIEnv Line 232  Java_java_io_File_existsInternal(JNIEnv
232  /*************************************************************************/  /*************************************************************************/
233    
234  /*  /*
235   * This method checks to see if a file is a "plain" file.  That is, not   * This method checks to see if a file is a "plain" file; that is, not
236   * a directory, pipe, etc.   * a directory, pipe, etc.
237     *
238     * Class:     java_io_File
239     * Method:    isFileInternal
240     * Signature: (Ljava/lang/String;)Z
241   */   */
242    
243  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 244  Java_java_io_File_isFileInternal(JNIEnv Line 268  Java_java_io_File_isFileInternal(JNIEnv
268    
269  /*  /*
270   * This method checks to see if a file is a directory or not.   * This method checks to see if a file is a directory or not.
271     *
272     * Class:     java_io_File
273     * Method:    isDirectoryInternal
274     * Signature: (Ljava/lang/String;)Z
275   */   */
276    
277  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 273  Java_java_io_File_isDirectoryInternal(JN Line 301  Java_java_io_File_isDirectoryInternal(JN
301  /*************************************************************************/  /*************************************************************************/
302    
303  /*  /*
304   * This method returns the length of the file   * This method returns the length of the file.
305     *
306     * Class:     java_io_File
307     * Method:    lengthInternal
308     * Signature: (Ljava/lang/String;)J
309   */   */
310    
311  JNIEXPORT jlong JNICALL  JNIEXPORT jlong JNICALL
# Line 301  Java_java_io_File_lengthInternal(JNIEnv Line 333  Java_java_io_File_lengthInternal(JNIEnv
333  /*************************************************************************/  /*************************************************************************/
334    
335  /*  /*
336   * This method returns the  modification date of the file   * This method returns the modification date of the file.
337     *
338     * Class:     java_io_File
339     * Method:    lastModifiedInternal
340     * Signature: (Ljava/lang/String;)J
341   */   */
342    
343  JNIEXPORT jlong JNICALL  JNIEXPORT jlong JNICALL
# Line 333  Java_java_io_File_lastModifiedInternal(J Line 369  Java_java_io_File_lastModifiedInternal(J
369  /*************************************************************************/  /*************************************************************************/
370    
371  /*  /*
372   * This method sets the modificatino date of the file   * This method sets the modification date of the file.
373     *
374     * Class:     java_io_File
375     * Method:    setLastModifiedInternal
376     * Signature: (Ljava/lang/String;J)Z
377   */   */
378    
379  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 375  Java_java_io_File_setLastModifiedInterna Line 415  Java_java_io_File_setLastModifiedInterna
415    
416  /*  /*
417   * This method deletes a file (actually a name for a file - additional   * This method deletes a file (actually a name for a file - additional
418   * linke could exist).   * links could exist).
419     *
420     * Class:     java_io_File
421     * Method:    deleteInternal
422     * Signature: (Ljava/lang/String;)Z
423   */   */
424    
425  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 404  Java_java_io_File_deleteInternal(JNIEnv Line 448  Java_java_io_File_deleteInternal(JNIEnv
448  /*************************************************************************/  /*************************************************************************/
449    
450  /*  /*
451   * This method creates a directory   * This method creates a directory.
452     *
453     * Class:     java_io_File
454     * Method:    mkdirInternal
455     * Signature: (Ljava/lang/String;)Z
456   */   */
457    
458  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 431  Java_java_io_File_mkdirInternal(JNIEnv * Line 479  Java_java_io_File_mkdirInternal(JNIEnv *
479  /*************************************************************************/  /*************************************************************************/
480    
481  /*  /*
482   * This method creates a directory   * This method renames a (link to a) file.
483     *
484     * Class:     java_io_File
485     * Method:    renameToInternal
486     * Signature: (Ljava/lang/String;Ljava/lang/String;)Z
487   */   */
488    
489  JNIEXPORT jboolean JNICALL  JNIEXPORT jboolean JNICALL
# Line 467  Java_java_io_File_renameToInternal(JNIEn Line 519  Java_java_io_File_renameToInternal(JNIEn
519    
520  /*  /*
521   * This method returns an array of String representing all the files   * This method returns an array of String representing all the files
522   * in a directory except "." and ".."   * in a directory except "." and "..".
523     *
524     * Class:     java_io_File
525     * Method:    listInternal
526     * Signature: (Ljava/lang/String;)[Ljava/lang/String;
527   */   */
528    
529  JNIEXPORT jobjectArray JNICALL  JNIEXPORT jobjectArray JNICALL

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26