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

Robert Höglund Wanlert

How can I load large files (eg log files greater than... 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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact