aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Max string size?

john klucas
Greenhorn

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 = "";
try{
if(fileReader != null)
{
ivjTextArea1.append("One Moment Please.....");
while ((s=fileReader.readLine()) != null)
{
temptrial.append(s+"\n");
}
strial = temptrial.toString();
ivjTextArea1.setText(temptrial.toString());
fileReader.close();
}
} catch(Throwable exception){
handleException(exception);
}
}
Nathan Pruett
Bartender

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...

-Nathan


-Nate
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?