DataOutputStream.size()
The method size() in DataOutputStream returns int.
This should be long IMO.
I am using DataOutputStream to generate huge files, and for a while, I nahively used the size() method to track my progress (and to generate an index into parts of the generated file).
Needless to say my program did not work for offsets over Integer.MAX_VALUE. (My fault of course, for not reading the Javadoc to detail.)
But the question is, shouldn't size() return long?
Reuben

