Meaningless Drivel is fun!
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

Modify the db file

Pete Palmer
Ranch Hand

Joined: Oct 21, 2008
Posts: 105

I have been using the following link to inspect the contents of the db file :-

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.


Alain Dickson
Ranch Hand

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

Download version 2.5 (Free).

Roel De Nijs

Joined: Jul 19, 2004
Posts: 7948

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
Pete Palmer
Ranch Hand

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

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.


I agree. Here's the link:
subject: Modify the db file
It's not a secret anymore!