How about something like
http://java.sun.com/j2se/1.4.2/docs/api/java/io/RandomAccessFile.html

-Dov 

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 04, 2005 4:32 PM
To: CF-Talk
Subject: For the java knowledgeable.

I have been working on creating a little log viewer that can view very
large log files, an arbitrary block at a time.  It uses the java
fileReader and bufferedReader objects.  So that I do not have to try and
load the entire multi-hundred megabyte log files into memory.

I'm happy to say after several hours of much learning and tinkering I
have got it working nicely.  It is specific purpose to a specific log
format but it's what I needed at this moment.  

As is wont to happen in these cases; I am already imagining
improvements.  Besides me doing something to make it more generically
useable with other log formats.  I am thinking of adding a search
feature so that I can get to a desired section quickly, without having
to page possibly several hundred times.  But if I do this, so that one
can jump into the middle of the file, one is really going to want to be
able to page backwards.  

And that is my question.  BufferedReader seems only meant, logically, to
read forward in a file.  Is there some other Java object(s) that I could
use to allow reading forward and backwards from arbitrary points in the
text file?


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any attachments is for
the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender and
delete any copies of this message. 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213805
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to