aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Modify the db file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Modify the db file" Watch "Modify the db file" New topic
Author

Modify the db file

Pete Palmer
Ranch Hand

Joined: Oct 21, 2008
Posts: 74
Hi

I have been using the following link to inspect the contents of the db file :-
http://www.fileformat.info/tool/hexdump.htm

However, it does not allow the bytes in the file to be modifed. I just wondered if anyone can point me to something similar but allows specific bytes to be modified.

Regards

Pete
Alain Dickson
Ranch Hand

Joined: Dec 08, 2008
Posts: 53
Pete - try this, I used this one for myself. It allows editing.

http://www.hexedit.com/download.htm

Download version 2.5 (Free).

Alain
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4913
    
  10

Why would you want to edit the content of the db-file? why not use your Data-class ? or write a small program with a RAF or a FOS to manipulate it.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Pete Palmer
Ranch Hand

Joined: Oct 21, 2008
Posts: 74
Alain,
Thanks for the suggestion seems to work nicely.

Roel,
The db file provided to me has all the 2 byte record flag set to VALID (00 00) and after some testing I have some set to DELETED (0x8000), however, I wanted to ensure that I handled records with the record flag set to something "invalid". Using the hex editor, I am able to modify flags accordingly and run further tests to confirm this.

Regards

Pete
 
 
subject: Modify the db file
 
Similar Threads
Classloader
db file read error?
File Upload Problem(Database and Dirctory)
How can we validate strings for meeting 8-bit US ASCII requirement ?
about record index