com.hardcode.gdbms.driver
Class DriverUtilities

java.lang.Object
  extended by com.hardcode.gdbms.driver.DriverUtilities

public class DriverUtilities
extends java.lang.Object

Utility method for the drivers


Constructor Summary
DriverUtilities()
           
 
Method Summary
static int translate(int code, int[] source, int[] target)
          Translates the specified code by using the translation table specified by the two last arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverUtilities

public DriverUtilities()
Method Detail

translate

public static int translate(int code,
                            int[] source,
                            int[] target)
Translates the specified code by using the translation table specified by the two last arguments. If there is no translation a RuntimeException is thrown.

Parameters:
code - code to translate
source - keys on the translation table
target - translation to the keys
Returns:
translated code


Copyright © 2005-2006 . All Rights Reserved.