dandycheung / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

FileConnection.usedSize does not do the right thing #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version 2.0.4 returns file size:
public long usedSize() {
try {
    return fileSize();
...

However, it should instead return "the used memory of a file system the 
connection's target resides on." According to two sources

http://www.forum.nokia.com/document/Java_Developers_Library_v2/GUID-D69FC49D-783
E-45CE-80D4-7A9F3EE08B2A/javax/microedition/io/file/FileConnection.html

http://www.blackberry.com/developers/docs/5.0.0api/javax/microedition/io/file/Fi
leConnection.html

Original issue reported on code.google.com by gregks...@gmail.com on 28 Oct 2010 at 6:45