com.partnersoft.v3x.io.formats.palm
Class PDBBuilder

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.palm.PDBBuilder

public class PDBBuilder
extends java.lang.Object

A builder for PDB files.


Constructor Summary
PDBBuilder(java.io.File pdbFile, java.lang.String name, java.lang.String creatorID, java.lang.String type)
           
 
Method Summary
 void appendRecord(int id, byte[] data)
          Adds a raw record.
 void close()
          Closes the temporary files, calculates all the offsets and such, and consolidates the result into the requested pdb file.
static void main(java.lang.String[] argv)
           
 void start()
          Initializes and creates the temporary files for building.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDBBuilder

public PDBBuilder(java.io.File pdbFile,
                  java.lang.String name,
                  java.lang.String creatorID,
                  java.lang.String type)
Method Detail

start

public void start()
           throws java.io.IOException
Initializes and creates the temporary files for building.

Throws:
java.io.IOException

appendRecord

public void appendRecord(int id,
                         byte[] data)
                  throws java.io.IOException
Adds a raw record.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes the temporary files, calculates all the offsets and such, and consolidates the result into the requested pdb file.

Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)