jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Max string size? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Max string size?

john klucas

Joined: Jul 31, 2001
Posts: 23
Can any one tell me, what i have to do if the String Object holds data more than 20-22MB of data.
The string object holds that much of data and then the same data have to be displayed in a text area.
i am doing something like this:
private void doReadFile(BufferedReader fileReader) {
String strial = "";
String s = "";
if(fileReader != null)
ivjTextArea1.append("One Moment Please.....");
while ((s=fileReader.readLine()) != null)
strial = temptrial.toString();
} catch(Throwable exception){
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

First off, please don't post to multiple forums.

Second, please read the Official JavaRanch Naming Policy... Please re-register with a user name that consists of a first name, a space, and a last name.

Since this topic already exists in Java In General( Intermediate ), I am closing this one...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link: http://aspose.com/file-tools
subject: Max string size?
It's not a secret anymore!