@@ -215,7 +215,8 @@ private void open(File file) throws FileNotFoundException {
215215 * file is reached.
216216 * @exception IOException if an I/O error occurs.
217217 */
218- public int read () throws IOException {
218+ @ Override
219+ public int read () throws IOException {
219220 return is .read ();
220221 }
221222
@@ -241,7 +242,8 @@ private int readBytes(byte b[], int off, int len) throws IOException {
241242 * the file has been reached.
242243 * @exception IOException if an I/O error occurs.
243244 */
244- public int read (byte b []) throws IOException {
245+ @ Override
246+ public int read (byte b []) throws IOException {
245247 return readBytes (b , 0 , b .length );
246248 }
247249
@@ -263,7 +265,8 @@ public int read(byte b[]) throws IOException {
263265 * <code>b.length - off</code>
264266 * @exception IOException if an I/O error occurs.
265267 */
266- public int read (byte b [], int off , int len ) throws IOException {
268+ @ Override
269+ public int read (byte b [], int off , int len ) throws IOException {
267270 return readBytes (b , off , len );
268271 }
269272
@@ -291,7 +294,8 @@ public int read(byte b[], int off, int len) throws IOException {
291294 * @exception IOException if n is negative, if the stream does not
292295 * support seek, or if an I/O error occurs.
293296 */
294- public long skip (long n ) throws IOException {
297+ @ Override
298+ public long skip (long n ) throws IOException {
295299 return is .skip (n );
296300
297301 }
@@ -313,7 +317,8 @@ public long skip(long n) throws IOException {
313317 * @exception IOException if this file input stream has been closed by calling
314318 * {@code close} or an I/O error occurs.
315319 */
316- public int available () throws IOException {
320+ @ Override
321+ public int available () throws IOException {
317322 return is .available ();
318323 }
319324
@@ -329,7 +334,8 @@ public int available() throws IOException {
329334 * @revised 1.4
330335 * @spec JSR-51
331336 */
332- public void close () throws IOException {
337+ @ Override
338+ public void close () throws IOException {
333339// synchronized (closeLock) {
334340 if (closed ) {
335341 return ;
@@ -342,8 +348,9 @@ public void close() throws IOException {
342348 }
343349
344350 fd .closeAll (new Closeable () {
345- public void close () throws IOException {
346- close0 ();
351+ @ Override
352+ public void close () throws IOException {
353+ //close0();
347354 }
348355 });
349356 }
@@ -390,9 +397,9 @@ public FileChannel getChannel() {
390397 }
391398 }
392399
393- private static native void initIDs ();
394-
395- private native void close0 () throws IOException ;
400+ // private static native void initIDs();
401+ //
402+ // private native void close0() throws IOException;
396403
397404 /**
398405 * Ensures that the <code>close</code> method of this file input stream is
@@ -401,7 +408,8 @@ public FileChannel getChannel() {
401408 * @exception IOException if an I/O error occurs.
402409 * @see java.io.FileInputStream#close()
403410 */
404- protected void finalize () throws IOException {
411+ @ Override
412+ protected void finalize () throws IOException {
405413 if ((fd != null ) && (fd != FileDescriptor .in )) {
406414 /* if fd is shared, the references in FileDescriptor
407415 * will ensure that finalizer is only called when
0 commit comments