pl.kernelpanic.dbmonster
Class DictionaryManager

java.lang.Object
  extended bypl.kernelpanic.dbmonster.DictionaryManager

public class DictionaryManager
extends Object

Dictionary Manager.

Version:
$Id: DictionaryManager.html,v 1.1 2007/06/21 08:38:14 sbahloul Exp $
Author:
Piotr Maj <piotr.maj@kernelpanic.pl>

Constructor Summary
DictionaryManager()
           
 
Method Summary
 Dictionary getDictionary(String schemaPath, String path)
          Returns a dictionary.
 Dictionary getDictionary(URL url)
          Loads a dictionary using specified url.
 void setRandom(Random rnd)
          Sets the random number generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryManager

public DictionaryManager()
Method Detail

setRandom

public final void setRandom(Random rnd)
Sets the random number generator.

Parameters:
rnd - random number generator

getDictionary

public final Dictionary getDictionary(String schemaPath,
                                      String path)
                               throws Exception
Returns a dictionary.

Parameters:
schemaPath - the schema file home
path - pathname
Returns:
a dictionary
Throws:
Exception - if dictionary cannot be obtained

getDictionary

public final Dictionary getDictionary(URL url)
                               throws Exception
Loads a dictionary using specified url.

Parameters:
url - url
Returns:
dictionary
Throws:
Exception - if dictionary cannot be loded.


Copyright © 2003-2005 .:. kernelpanic.pl .:.. All Rights Reserved.