throw new DbException("Collection '" + colDir.getAbsolutePath()
+ "' is not a directory, but was a file");
}
File symbolFile = new File(colDir, _colName + QNAMES_FILE_SUFFIX);
if(!symbolFile.exists()) {
return new QNameTable(128);
}
// load symbols
final ObjectInputStream ois;
try {
ois = new ObjectInputStream(new FileInputStream(symbolFile));
} catch (FileNotFoundException fe) {
throw new DbException(fe);
} catch (IOException ioe) {
throw new DbException(ioe);
}
final QNameTable symbols;
try {
symbols = (QNameTable) ois.readObject();
} catch (IOException ioe) {
throw new DbException(ioe);
} catch (ClassNotFoundException ce) {
throw new DbException(ce);
} finally {
try {
ois.close();
} catch (IOException e) {
}
}
symbols.setDirty(false);
return symbols;
}