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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |