FileSystem.getSize() should support 'unknown' length
----------------------------------------------------
Key: JBVFS-162
URL:
https://jira.jboss.org/browse/JBVFS-162
Project: JBoss VFS
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Aslak Knutsen
Assignee: John Bailey
When working with a Stream based FileSystem the size of the Stream could be unknown until
streamed. FileSystem.getSize() forces writing the data to local disk to figure out the
size (or stream it to '/dev/null' ).
FileSystem.getSize() supports a return type of '0L' to indicate a
'directory'. In the same fashion, it could match up with e.g.
URLConnection.getContentLength() and support '-1L' to indicate a 'unknown
size'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira