How to parse ".dat" file using java?
Hi experts/friends,
I need to parse the ".dat" files such as "history.dat" of Firefox history and "index.dat" of IE history...
I cannot able to parse those files.
Can anyone suggest me or help me....
Google ( [url http://www.google.com/search?q=firefox+history+file+format]firefox history file format )
Google ( [url http://www.google.com/search?q=internet+explorer+history+file+format]internet explorer history file format )
Similar Messages
-
How to run .jar on linux & how to create .jar file using java?
hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
thanks in advance.Look at the manual page for jar:
# man jar
Also you can run them by doing:
# java -jar Prog.jar -
How to print PDF files using java print API
Hi,
I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
Thanks in advanceMike,
Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
boolean showPrintDialog=true;
PrinterJob printJob = PrinterJob.getPrinterJob ();
printJob.setJobName ("Contract.pdf");
try {
if (showPrintDialog) {
if (printJob.printDialog()) {
printJob.print();
else
printJob.print ();
} catch (Exception PrintException) {
PrintException.printStackTrace();
Thank you and a happy new year.
Cheers,
Chris -
How to open/read file using Java in Unix?
Hi Friends,
Can you please help me out how to open/read file using java in unix os? I have create one text file in "/home/test.txt" in unix environment. How to open the same file & read using java code?
- Hiren Modihttp://java.sun.com/docs/books/tutorial/essential/io/index.html
-
How to uncompress zip files using java program
hai,
please give some sample code to decompress the zip file.
how to uncompress zip files using java program
thanking you
arivarasuhttp://developer.java.sun.com/developer/technicalArticles/Programming/PerfTuning/
Scroll down to 'Compression' -
How to read pdf files using java.io package classes
Dear All,
I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
Thanks in advance.hi I also have the pbm. to read pdf file using JAVA
can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
or also I want to read a binary encoded data into
ascii,
can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically. -
Hi all,
I want to parse a DTD using java. I need to get elemnets and attibutes in the DTD file in their correct order.
What are the I nedd to download for this?
Could anyone please help me to solve this issue.
Please do favour with me.
Thanks and reagrds,
SreekanthYou are welcome to parse a DTD in java, but you cannot do it with the XML tools, since a DTD does not follow the rules of XML. (That is one of the advantages of a Schema.)
Although it is not XML, it certainly has repeatable patterns and delimeters, so all is not lost. I'd suggest you read about Pattern, and Matcher objects and learn about regular expressions.
Dave Patterson -
How to load avi files using java ?
Hi, i need to load avi (movie file) using java. I have usually done with java applet, but the applet just can load image (jpeg, gif)
All types of data should be downloaded in same way. What is your problem: exception or something else? Post here.
-
Friends,
I want to gzip a file in unix using my java program, can I use Runtime.exec() method and run the gzip command to achieve this ?
Is there any other way to zip/compress a file using java api ?
ThanksUse [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/GZIPOutputStream.html]java.util.zip.GZIPOutputStream along with [url http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html]java.io.FileOutputStream
-
How to download video files using java
hi,
i am designing a download manager using java. Although i am able to download html pages and images as of now, i am facing problems while downloading the video files. Can somebody please guide me as to how to do this.
Thanks in advance,
ArunAll types of data should be downloaded in same way. What is your problem: exception or something else? Post here.
-
How to consolidate data files using data pump when migrating 10g to 11g?
We have one 10.2.0.4 database to be migrated to a new box running 11.2.0.1. The 10g database has too many data files scattered within too many file systems. I'd like to consolidate the data files into one or two large chunk in one file systems. Both OSs are RHEL 5. How should I do that using Data Pump Export/Import? I knew there is "Remap" option could be used, but it's only one to one mapping. How can I map multiple old data files into one new data file?
hi
datapump is terribly slow, make sure you have as much memory as possible allocated for Oracle but the bottleneck can be I/O throughput.
Use PARALLEL option, set also these ones:
* DISK_ASYNCH_IO=TRUE
* DB_BLOCK_CHECKING=FALSE
* DB_BLOCK_CHECKSUM=FALSE
set high enough to allow for maximum parallelism:
* PROCESSES
* SESSIONS
* PARALLEL_MAX_SERVERS
more:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/dp_perf.htm
that's it, patience welcome ;-)
P.S.
For maximum throughput, do not set PARALLEL to much more than twice the number of CPUs (two workers for each CPU).
Edited by: g777 on 2011-02-02 09:53
P.S.2
breaking news ;-)
I am playing now with storage performance and I turned the option of disk cache (also called write-back cache) to ON (goes at least along with RAID0 and 5 and setting it you don't lose any data on that volume) - and it gave me 1,5 to 2 times speed-up!
Some says there's a risk of lose of more data when outage happens, but there's always such a risk even though you can lose less. Anyway if you can afford it (and with import it's OK, as it ss not a production at that moment) - I recommend to try. Takes 15 minutes, but you can gain 2,5 hours out of 10 of normal importing.
Edited by: g777 on 2011-02-02 14:52 -
How to upload a file using java bean?
hi,
i need a code simple how to upload a file from jsp form to a java bean file (not a servlet)
thank,s zikHi,
i need a code sample how to upload a file from jsp
form to a java bean file (not a servlet)You can use jspSmartUpload component which is a free, fully-featured JSP component.
jspSmartUpload provides you with all the upload/download features you could possibly wish for :
* Simple and complete upload
* Total control over the upload process
* �Mixed forms� management
* Total control over files sent
* Download whatever you want
For further information about jspSmartUpload please visit
http://www.jspsmart.com/
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Micro Sysytems
http://www.sun.com/developers/support/ -
How to hide hidden files using java FileSystemView
My application has a browser. I use the following method from FileSystemView
public File[] getFiles(File dir,
boolean useFileHiding)
with false as the second argument so that the browser doesn't display hidden files.
It doesn't work completely.
I found out there are two types of hidden files in Mac. the ones that being with "." (unix based) and the ones that have an invisibility attribute for the meta of the file (folders like /usr, /bin, /tmp, /etc).
The getFiles filter works only for hidden files that start with "." but it still shows the second type of hidden files.
For the second type of hidden files in Mac, how can I get the invisibility file attribute information in Java so that I can hide them from the file browser?
thanks,The GetFileInfo tool that ships with the XCode Tools can display the file's information. Additionally, the SetFile tool allows setting those flags. How you use java to implement those, I suggest you ask at the Unix forum under OS X Technologies.
-
How to play movie file using java tv
hi,
i am trying to play movie file(.mov or mpg or mp3) using java tv in linux plotform and also using jmf jar.
problem is while running appear black screen and getting exception or errors like
Unable to handle format: ima4, 480x320, FrameRate=25.0, Length=460800 0 extra bytes
Thank in advWell...
I don't know how to load and play a video with JavaTV. But I've seen some posts telling that .mpg files aren't accepted by the JavaTV.
Some people said that I had to use .avi files and these .avi files, if they were converted from a .mpg file, must had been converted with the Cinepack technology, but I don't know how to do this.
If you find out how to load and play a video, I'd like to know, please send me an email or access my page and post there in the comments, so I can continue doing my application with a video.
[]'s
Cauane B.S.
Computer Science
CNPq Researcher - TVDi
http://cauanebs.blogspot.com
UCPel - Pelotas - RS -
How to record .jar file using Java Protocol
Hi,
I Tried to record .jar using Java protocol by using HR Loadrunner 11.0 Version tool.
Am unable to record the application.
Can any one suggest me the process of recording .jar file using load runner?
Thanks,
VenkatLook at the manual page for jar:
# man jar
Also you can run them by doing:
# java -jar Prog.jar
Maybe you are looking for
-
"On My Mac" saved mail gone since upgrading to Mountain Lion
I upgraded my iMac from Snow Leopard to Mountain Lion this past week. Mail worked fine for a few days and then my Mail Rules and my "On My Mac" saved mail (DECADES worth of mail!!!) disappeared. I have both a Time Machine backup of my Snow Leopard fr
-
OS - 6.1.3 After it turns off it gets put into " recovery mode". and even if i do the "restart", i have to do it several times before the phone actually turns on. phone is 1 year and 5 mos old. already tried to restore it but it just keeps on shuttin
-
Regarding Turnkey Projects Procurement
Hi SAP Experts, We have a client Requirement, which is Turnkeys Project procurement, in which Step 1) The client awards Turnkey tender to Vendor which includes both the Materials & services, Step 2) The client inspects the Material Made (Quantity & Q
-
Setting the time to UTC?
Okay my local time is 1 hour behind. My UTC time is correct. In /etc/rc.conf iI have "HARDWARECLOCK="UTC" but everywhere the time is displayed its in local time? Is there a way to set the time to UTC system wide?
-
Serial numbers in sales order/delivery
Hi All I have a question question on Bar code number generation. Please note that this is NOT a question on bar code printing or issuing output to printer. One of our customers requires serial numbers for all the products that we supply to them and t