aspose file tools
The moose likes Java in General and the fly likes need to filter data from log files and insert into xl sheet using POI? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "need to filter data from log files and insert into xl sheet using POI?" Watch "need to filter data from log files and insert into xl sheet using POI?" New topic
Author

need to filter data from log files and insert into xl sheet using POI?

vijendra singh
Greenhorn

Joined: Oct 31, 2006
Posts: 17
need to filter data from log files and insert into xl sheet using POI? how Is there any interface between these two which can support this feature. Earlier i was getting data from database and one by one kept it in POI so that xl sheet can be generated easily, there resulset.getcolumn() helped getting data one by one. Now someone has filtered data using some logic and kept it in GUI format using TableModel i.e. javax.swing.table.TableModel; here it able to hold values easily. But i don't have option to use anything like TableModel. If anyone has worked on any similar stuff please suggest me something useful. any supporting API.
thanks.
vijendra


Vijendra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
I don't know of anything supporting this directly, but if the log file has a somewhat regular format then you might be able to use the java.util.Scanner or java.util.BreakIterator classes to loop over the fields of an entry. That would allow you to insert data into the sheet row by row.
[ November 24, 2006: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
What's keeping you from using the TableModel? You can use the model without building a GUI.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: need to filter data from log files and insert into xl sheet using POI?
 
Similar Threads
Sorting a sheet by a column in POI
Create Spreadsheet
xl export import
Redirecting incoming mail to JAVA application
Issue with entering data from Java class file to Database