Package org.jasen.interfaces

Examples of org.jasen.interfaces.JasenMapStore


        }

        // Load the token map...
        String strMapStoreClass = properties.getProperty("map-store-class");

        JasenMapStore store = null;

        if(strMapStoreClass != null) {
            try
            {
                store = (JasenMapStore)Class.forName(strMapStoreClass).newInstance();
            }
            catch (InstantiationException e)
            {
                throw new JasenException(e);
            }
            catch (IllegalAccessException e)
            {
                throw new JasenException(e);
            }
            catch (ClassNotFoundException e)
            {
                throw new JasenException(e);
            }
        }
        else
        {
            store = new DiskMapStore();
        }

        map = store.load(in);

        String strMinTokens = properties.getProperty("min-tokens");
        String strDefaultProb = properties.getProperty("default-prob");

        if(strMinTokens != null)
View Full Code Here

TOP

Related Classes of org.jasen.interfaces.JasenMapStore

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.