posted 13 years ago
I am just guessing here: Since Java use a char array to store strings and the array size cannot be larger than Integer.MAX_VALUE, I guess the string cannot have more than Integer.MAX_VALUE (about 64k) chars either.
Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Michael Yuan
author
Ranch Hand
Ranch Hand
Posts: 1427
posted 13 years ago
But you can always read the stream chunk by chunk and assemble them into multiple strings.
Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
James Hodgkiss
Ranch Hand
Posts: 401
posted 13 years ago
Thanks Michael,
I have also found a thread at
http://www.coderanch.com/t/373885/java/java/many-bytes-String-object-contain
which also has some good info, in case anyone wants to know about this.
Cheers,
James
I have also found a thread at
http://www.coderanch.com/t/373885/java/java/many-bytes-String-object-contain
which also has some good info, in case anyone wants to know about this.
Cheers,
James
