I'm building a Download manager and I'm trying to optimise it by setting disk buffer size to the system block size... but the problem is there is no such thing in java that allows to get system file block size so i came up with an idea and that is if i store a file that is 1 byte on disk then i calculate "size on disk" so i get the block size of file system which is for me 4 kbyte. example:
so can this be done in java??