Last active
August 29, 2015 14:22
-
-
Save epickrram/53e7de49b4e3977f9fbf to your computer and use it in GitHub Desktop.
RandomAccessFile.seek()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
From http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/io/RandomAccessFile.java#l521 | |
*/ | |
public void seek(long pos) throws IOException { | |
if (pos < 0) { | |
throw new IOException("Negative seek offset"); | |
} else { | |
seek0(pos); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment