?
=?iso-8859-1?q?S=E9bastien_de_Mapias?=
Hi,
I'd like to know how Java knows the size of a file.
When you simply do
File f = new File("/usr/tmp/stuff.txt");
long si = f.length();
it performs a call to its own reference of FileSystem.getLength
on itself, and when I check the getFileSystem() method in the
FileSystem class I see it's native...
So I guess the size (amongst other properties) is a data that
f receives when it's instantiated - or I'm mistaken ?
Thanks.
Seb
I'd like to know how Java knows the size of a file.
When you simply do
File f = new File("/usr/tmp/stuff.txt");
long si = f.length();
it performs a call to its own reference of FileSystem.getLength
on itself, and when I check the getFileSystem() method in the
FileSystem class I see it's native...
So I guess the size (amongst other properties) is a data that
f receives when it's instantiated - or I'm mistaken ?
Thanks.
Seb