Add java lang math methods

This commit is contained in:
Victor Shcherb
2013-01-21 22:43:29 +01:00
committed by Alexey Pelykh
parent 85ce7696ca
commit d6aff87ef9
3 changed files with 50 additions and 0 deletions

View File

@ -56,6 +56,12 @@ public class RandomAccessFile {
this.position = position;
}
public int skipBytes(int count) throws IOException {
if (position + count > length()) throw new IOException();
this.position = position + count;
return count;
}
public void readFully(byte[] buffer, int offset, int length)
throws IOException
{