OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.palm
Class PdbUtil

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.palm.PdbUtil

public final class PdbUtil
extends java.lang.Object

Contains common static methods and constants for use within the package.


Constructor Summary
PdbUtil()
           
 
Method Summary
static int intID(java.lang.String s)
          This method converts a 4 letter string into the Palm ID integer.
static java.lang.String stringID(int i)
          This method converts an integer into a String given the Palm ID format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdbUtil

public PdbUtil()
Method Detail

intID

public static int intID(java.lang.String s)

This method converts a 4 letter string into the Palm ID integer.

It is normally used to convert the Palm creator ID string into the integer version of it. Also use for data types, etc.

Parameters:
s - Four character String.
Returns:
Palm ID representing the String.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If String parameter contains less than four characters.

stringID

public static java.lang.String stringID(int i)
This method converts an integer into a String given the Palm ID format.
Parameters:
i - Palm ID.
Returns:
String representation.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org