blob: 66297851415d75095f346de3328e18b8e5e21408 [file] [log] [blame]
/*
*******************************************************************************
* Copyright (C) 2002-2004, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.dev.tool.localeconverter;
import java.util.*;
public class LocaleConverter {
public Hashtable convert(Hashtable table) throws ConversionError {
Hashtable result = new Hashtable();
convert(result, table);
return result;
}
protected void convert(Hashtable result, Hashtable source) throws ConversionError {
Enumeration enum = source.keys();
while (enum.hasMoreElements()) {
String key = (String)enum.nextElement();
Object data = source.get(key);
result.put(key, data);
}
}
public static class ConversionError extends Exception {
public ConversionError() {
}
public ConversionError(String reason) {
super(reason);
}
}
}