How can I load large files (eg log files greater than...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   constantine_stanley
Posted On:   Wednesday, December 13, 2000 11:52 PM

How can I load large files (eg log files greater than 80 MB) in JEditorPane?

How can I load large files (eg log files greater than...

Posted By:   Anonymous  
Posted On:   Wednesday, April 11, 2001 08:05 AM

You can use paging.

It means, in general terms, split your log file in numbered blocks (or sections). Each block has a given index.

For example, each block contains x rows. The JEditorPane contains one block at a time. The other blocks may persist in memory. When the JEditorPane-view reaches the beginning or end of each block you just exchange the current block with previous/next block.

This takes some programming, but can be done fairly easily.

About | Sitemap | Contact