Package org.ChinaVO.FITSManager.Util

Class Summary
DBOperator A database operator for the whole application.
DriverShim a proxy driver to trick the security mechanism of driver manager.

example:
String strDrv = ss.getStringValue("config/database/driver",
"org.apache.derby.jdbc.EmbeddedDriver");
URL url;
try {
// url = new
// URL("file:/D:/Program Files/Develop/Java/eclipse/./derby.jar");
File f = new File(ss.getStringValue(
"config/database/driverFileURL", "./derby.jar"));
url = f.toURL();
} catch (MalformedURLException e) {
e.printStackTrace();
url = null;
}
URLClassLoader ucl = new URLClassLoader(new URL[] { url },
DBOperator.class.getClassLoader());
Driver drv = (Driver) Class.forName(strDrv, true, ucl)
.newInstance();
DriverManager.registerDriver(new DriverShim(drv));
FileUtil some utilitiy functions for file operation.
FITSUtil some utilitiy functions for FITS file.
VOTableUtil Some utility functions for VOTable file.
Example:
if(VOTableUtil.isVotable(file)) to do something;