mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Merge pull request #111 from dscho/filechannel-size
Add FileChannel#size()
This commit is contained in:
commit
136bc0e40b
@ -193,6 +193,10 @@ public class RandomAccessFile {
|
||||
seek(position);
|
||||
return this;
|
||||
}
|
||||
|
||||
public long size() throws IOException {
|
||||
return length();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user