53 |
|
|
54 |
/* |
/* |
55 |
* Returns the length of the file being read. |
* Returns the length of the file being read. |
56 |
|
* |
57 |
|
* Class: java_io_RandomAccessFile |
58 |
|
* Method: lengthInternal |
59 |
|
* Signature: (I)J |
60 |
*/ |
*/ |
61 |
|
|
62 |
JNIEXPORT jlong JNICALL |
JNIEXPORT jlong JNICALL |
69 |
|
|
70 |
/* |
/* |
71 |
* Method to skip bytes in a file. |
* Method to skip bytes in a file. |
72 |
|
* |
73 |
|
* Class: java_io_RandomAccessFile |
74 |
|
* Method: skipInternal |
75 |
|
* Signature: (II)I |
76 |
*/ |
*/ |
77 |
|
|
78 |
JNIEXPORT jint JNICALL |
JNIEXPORT jint JNICALL |
85 |
/*************************************************************************/ |
/*************************************************************************/ |
86 |
|
|
87 |
/* |
/* |
88 |
* Opens the file for reading |
* Opens the file for reading. |
89 |
|
* |
90 |
|
* Class: java_io_RandomAccessFile |
91 |
|
* Method: open |
92 |
|
* Signature: (Ljava/lang/String;Z)I |
93 |
*/ |
*/ |
94 |
|
|
95 |
JNIEXPORT jint JNICALL |
JNIEXPORT jint JNICALL |
105 |
/*************************************************************************/ |
/*************************************************************************/ |
106 |
|
|
107 |
/* |
/* |
108 |
* Closes the file |
* Closes the file. |
109 |
|
* |
110 |
|
* Class: java_io_RandomAccessFile |
111 |
|
* Method: closeInternal |
112 |
|
* Signature: (I)V |
113 |
*/ |
*/ |
114 |
|
|
115 |
JNIEXPORT void JNICALL |
JNIEXPORT void JNICALL |
121 |
/*************************************************************************/ |
/*************************************************************************/ |
122 |
|
|
123 |
/* |
/* |
124 |
* Reads bytes from the file |
* Reads bytes from the file. |
125 |
|
* |
126 |
|
* Class: java_io_RandomAccessFile |
127 |
|
* Method: readInternal |
128 |
|
* Signature: (I[BII)I |
129 |
*/ |
*/ |
130 |
|
|
131 |
JNIEXPORT jint JNICALL |
JNIEXPORT jint JNICALL |
138 |
/*************************************************************************/ |
/*************************************************************************/ |
139 |
|
|
140 |
/* |
/* |
141 |
* Write bytes to the file |
* Write bytes to the file. |
142 |
|
* |
143 |
|
* Class: java_io_RandomAccessFile |
144 |
|
* Method: writeInternal |
145 |
|
* Signature: (I[BII)V |
146 |
*/ |
*/ |
147 |
|
|
148 |
JNIEXPORT void JNICALL |
JNIEXPORT void JNICALL |
155 |
/*************************************************************************/ |
/*************************************************************************/ |
156 |
|
|
157 |
/* |
/* |
158 |
* This method returns the current position in the file |
* This method returns the current position in the file. |
159 |
|
* |
160 |
|
* Class: java_io_RandomAccessFile |
161 |
|
* Method: getFilePointerInternal |
162 |
|
* Signature: (I)J |
163 |
*/ |
*/ |
164 |
|
|
165 |
JNIEXPORT jlong JNICALL |
JNIEXPORT jlong JNICALL |
176 |
/*************************************************************************/ |
/*************************************************************************/ |
177 |
|
|
178 |
/* |
/* |
179 |
* This method seeks to the specified position from the beginning of the file |
* This method seeks to the specified position from the beginning of the file. |
180 |
|
* |
181 |
|
* Class: java_io_RandomAccessFile |
182 |
|
* Method: seekInternal |
183 |
|
* Signature: (IJ)V |
184 |
*/ |
*/ |
185 |
|
|
186 |
JNIEXPORT void JNICALL |
JNIEXPORT void JNICALL |
197 |
/* |
/* |
198 |
* This method sets the length of the file. Hmm. Do all platforms have |
* This method sets the length of the file. Hmm. Do all platforms have |
199 |
* ftruncate? Probably not so we migth have to do some non-atomic stuff |
* ftruncate? Probably not so we migth have to do some non-atomic stuff |
200 |
* on those |
* on those. |
201 |
|
* |
202 |
|
* Class: java_io_RandomAccessFile |
203 |
|
* Method: setLengthInternal |
204 |
|
* Signature: (IJ)V |
205 |
*/ |
*/ |
206 |
|
|
207 |
JNIEXPORT void JNICALL |
JNIEXPORT void JNICALL |