Just wondering, is there a way of finding out the length of a file without actually reading through until the end of the file ?

Using just pure jdk, so no wfc java stuff