I believe the title says it all.
I've looked at java.nio.file.attribute.Attributes
and java.nio.file.FileStore
, but couldn't find a way to discover the block-size of a disk-file.
I believe the title says it all.
I've looked at java.nio.file.attribute.Attributes
and java.nio.file.FileStore
, but couldn't find a way to discover the block-size of a disk-file.
Here is an article on buffer size vs I/O throughput. Synopsis: nio handles all of that for you. This SO post concludes you should use a power of 2.