File size limitation question

View: New views
2 Messages — Rating Filter:   Alert me  

File size limitation question

by Andrey Yakovenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message





Hi all,

As I found, maximum file size explicitly limited in Jigsaw (2.2.5a discussed).

org.w3c.tools.resources.FileResource.java (line 343):
     setValue(ATTR_FILE_LENGTH, new Integer((int)file.length()));

Conversion from java's standard Long for file sizes to Integer is done.
I wonder why, as this makes impossible for Jigsaw to handle files with
size more than 2^32 bytes (4GB).
In my case this is unacceptable...=(
(I'm thinking about replacement all of that to Long, so it's important
to know why it was done.)

Best regards,
Andrey Yakovenko



Re: File size limitation question

by Yves Lafon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Mon, 12 Dec 2005, Andrey Yakovenko wrote:

> As I found, maximum file size explicitly limited in Jigsaw (2.2.5a discussed).
>
> org.w3c.tools.resources.FileResource.java (line 343):
>     setValue(ATTR_FILE_LENGTH, new Integer((int)file.length()));
>
> Conversion from java's standard Long for file sizes to Integer is done.
> I wonder why, as this makes impossible for Jigsaw to handle files with
> size more than 2^32 bytes (4GB).
> In my case this is unacceptable...=(
> (I'm thinking about replacement all of that to Long, so it's important
> to know why it was done.)

It's on my top priority list, I plan to move to Long for 2.2.6 (there was
no LongAttribute, hence the limitation in early version of Jigsaw, but
it's time to move on and serve real big files).
I'll send an experimental jar for testing purposes soon.

--
Yves Lafon - W3C
"Baroula que barouleras, au tiƩu toujou t'entourneras."