Package net.percederberg.mibble.browser

Examples of net.percederberg.mibble.browser.MibTreeBuilder$MibTree


     *             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);
    }
View Full Code Here

TOP

Related Classes of net.percederberg.mibble.browser.MibTreeBuilder$MibTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.