Merge pull request #111 from dscho/filechannel-size

Add FileChannel#size()
This commit is contained in:
Joshua Warner 2013-12-04 13:36:07 -08:00
commit 136bc0e40b
2 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,10 @@ public class RandomAccessFile {
seek(position);
return this;
}
public long size() throws IOException {
return length();
}
};
}
}

View File

@ -30,4 +30,6 @@ public abstract class FileChannel implements Channel {
public abstract long position() throws IOException;
public abstract FileChannel position(long position) throws IOException;
public abstract long size() throws IOException;
}