* MIB search path
* @throws MibLoaderException if the MIB file couldn't be loaded
* correctly
*/
public void loadMib(String src) throws IOException, MibLoaderException {
MibTreeBuilder mb = MibTreeBuilder.getInstance();
File file = new File(src);
Mib mib = null;
if (file.exists()) {
if (loader.getMib(file) != null) {
return;
}
if (!loader.hasDir(file.getParentFile())) {
loader.removeAllDirs();
loader.addDir(file.getParentFile());
}
mib = loader.load(file);
addFilePref(file);
} else {
mib = loader.load(src);
}
mb.addMib(mib);
}