Commons: PDB

Reader for PalmOS PDB files

License

License

GNU Lesser General Public License Version 3
GroupId

GroupId

org.shredzone.commons
ArtifactId

ArtifactId

commons-pdb
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Commons: PDB
Reader for PalmOS PDB files
Project URL

Project URL

http://commons.shredzone.org
Source Code Management

Source Code Management

https://github.com/shred/commons-pdb/

Download commons-pdb

How to add to project

<!-- https://jarcasting.com/artifacts/org.shredzone.commons/commons-pdb/ -->
<dependency>
    <groupId>org.shredzone.commons</groupId>
    <artifactId>commons-pdb</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.shredzone.commons/commons-pdb/
implementation 'org.shredzone.commons:commons-pdb:1.0'
// https://jarcasting.com/artifacts/org.shredzone.commons/commons-pdb/
implementation ("org.shredzone.commons:commons-pdb:1.0")
'org.shredzone.commons:commons-pdb:jar:1.0'
<dependency org="org.shredzone.commons" name="commons-pdb" rev="1.0">
  <artifact name="commons-pdb" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.shredzone.commons', module='commons-pdb', version='1.0')
)
libraryDependencies += "org.shredzone.commons" % "commons-pdb" % "1.0"
[org.shredzone.commons/commons-pdb "1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

commons-pdb build status maven central

A Java library for reading PalmOS PDB database files.

Features

  • Lightweight, only requires Java 1.7 or higher, no other dependencies.
  • Android compatible, requires API level 19 (KitKat) or higher.
  • Available at Maven Central

This library offers converters for reading the contents of the most common PDB files:

  • Address book
  • Datebook
  • Todo-List
  • Memo
  • Notepad (except on Android)

Custom converters can be added for other PDB files. Also, all PDB file contents can be read as raw byte arrays.

Example

This example reads a calendar PDB file, and converts the records to ScheduleRecord objects using a ScheduleConverter.

try (PdbFile pdb = new PdbFile(new File("calendar.pdb")) {
    PdbDatabase<ScheduleRecord, CategoryAppInfo> database = pdb.readDatabase(new ScheduleConverter());

    System.out.printf("Name: %s\n", database.getName());

    List<Category> cats = database.getAppInfo().getCategories();
    for (int ix = 0; ix < cats.size(); ix++) {
        System.out.printf("Category %d: %s\n", ix, cats.get(ix));
    }

    for (ScheduleRecord entry : database.getRecords()) {
        System.out.println(entry);
    }
}

See the online documentation for API details.

There is also a pdbconverter tool offering a GUI and a command line, for converting PDB files.

Contribute

License

commons-pdb is open source software. The source code is distributed under the terms of GNU Lesser General Public License Version 3.

Versions

Version
1.0