ucar.units
Class UnitDBManager

java.lang.Object
  extended by ucar.units.UnitDBManager
All Implemented Interfaces:
Serializable

public final class UnitDBManager
extends Object
implements Serializable

Provides support for managing a default unit database.

Version:
$Id: UnitDBManager.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson
See Also:
Serialized Form

Constructor Summary
UnitDBManager()
           
 
Method Summary
static UnitDB instance()
          Gets the default unit database.
static void setInstance(UnitDB instance)
          Sets the default unit database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitDBManager

public UnitDBManager()
Method Detail

instance

public static final UnitDB instance()
                             throws UnitDBException
Gets the default unit database.

Returns:
The default unit database.
Throws:
UnitDBException - The default unit database couldn't be created.

setInstance

public static final void setInstance(UnitDB instance)
Sets the default unit database. You'd better know what you're doing if you call this method!

Parameters:
instance - The unit database to be made the default one.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.