/[classpath]/classpath/java/io/RandomAccessFile.java
ViewVC logotype

Diff of /classpath/java/io/RandomAccessFile.java

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

revision 1.12 by mark, Sun Oct 27 13:07:17 2002 UTC revision 1.13 by daryllee, Fri Dec 27 18:40:09 2002 UTC
# Line 921  skipBytes(int n) throws EOFException, IO Line 921  skipBytes(int n) throws EOFException, IO
921    if (n <= 0)    if (n <= 0)
922      return(0);      return(0);
923    
924    long total_skipped = skipInternal(native_fd, n);    long file_length = this.length();
925      long file_position = this.getFilePointer();
926      int skip_length = (int) Math.min(n, file_length - file_position);
927      long total_skipped = skipInternal(native_fd, skip_length);
928    
929    return((int)n);    return((int)total_skipped);
930  }  }
931    
932  /*************************************************************************/  /*************************************************************************/

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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