I've written Java programs to break a .pdb file into component files and
to assemble a .pdb file from component files (one per record).
and .pbitm format.
You can get the zip file here, with the source and
class files.
To unpack a pdb file, run "java pdb2files foo.pdb". This will
break up foo.pdb into foo0, foo1, etc., one per record.
To create a pdb file, run "java files2pdb foo.pdb foo0 foo1 foo2 foo3";
this will create foo.pdb with 4 records.
Files2pdb has a bunch of options, of which -i, -n, and -c are the most useful:
- -i appInfoFile
- -n name
- -a attributes
- -v version
- -cd creationdate
- -md modificationdate
- -bd backupDate
- -mn modificationNumber
- -t type
- -c creator
- -s seed
For example,
"java files2pdb -n MyDB -t Data -c KSla foo.pdb foo0 foo1 foo2 foo3".
I've made these programs available in the hopes that they may be useful.
The code is extremely rough and probably has plenty of bugs, so be warned.
You can send me
feedback.
Editorial
People are
writing Pilot applications on Macintosh, Windows, and Unix, so tools
for writing these applications
should really be platform-independent. It's a pain to have tools that
only run on Windows, for instance.
Java is obviously the right language for writing platform-independent
Pilot tools, and I hope to
see more such tools written in Java.
Hoshi Takanori's
ptools
program to display a Pilot .prc resource file is a great example of what
you can do with Java.
WebCounter:
Ken Shirriff:
shirriff@eng.sun.com
This page:
http://www.righto.com/pilot/pdb.html
Copyright 2000 Ken Shirriff. Last updated 3/13/2001.
Java and other Java-based names are trademarks of Sun Microsystems,
Inc. and refer to Sun's family of Java-branded technologies.
PalmPilot is a trademark of 3Com.
Use of this software is subject to the terms of the
license agreement.
: