Examples of load()


Examples of games.stendhal.server.core.config.SpellGroupsXMLLoader.load()

   * builds the spell tables
   */
  private void buildSpellTables() {
    try {
      final SpellGroupsXMLLoader loader = new SpellGroupsXMLLoader(new URI("/data/conf/spells.xml"));
      List<DefaultSpell> loadedDefaultSpells = loader.load();
      for (DefaultSpell defaultSpell : loadedDefaultSpells) {
        addSpell(defaultSpell);
      }
    } catch (Exception e) {
      LOGGER.error("spells.xml could not be loaded", e);
View Full Code Here

Examples of games.stendhal.server.core.config.ZoneGroupsXMLLoader.load()

public class GenerateMonsterUsage {
  public static void main(final String[] args) throws URISyntaxException,
      SAXException, IOException {
    final ZoneGroupsXMLLoader loader = new ZoneGroupsXMLLoader(new URI(
        "/data/conf/zones.xml"));
    loader.load();

    final Map<String, Integer> count = new HashMap<String, Integer>();

    final CreatureGroupsXMLLoader creatureLoader = new CreatureGroupsXMLLoader("/data/conf/creatures.xml");
    final List<DefaultCreature> creatures = creatureLoader.load();
View Full Code Here

Examples of gannuNLP.dictionaries.DataBroker.load()

      f.mkdirs();
      f=new File("./data/"+dict.getName()+"/"+dict.getName()+".sta");
      if(f.exists())//then try to upload a corpus
      {
        DataBroker db=new DataBroker(args[0],args[1]);
        db.load("Glosses;");       
        System.out.println("Dictionary uploaded!");
        System.out.println("Loading samples from SemCor files!");
        f=new File(args[2]);
        if(f.exists())
        {
View Full Code Here

Examples of gannuNLP.dictionaries.Dictionary.load()

          }
          System.out.println("Uploading dictionary! Wait some minutes please!");
           dict.loadCoreData();
          dict.parseSamplesFromDictionary();                 
          dict.load("Glosses;Samples");
          dict.WriteSuperLemmas("./data/"+dict.getName()+"/");
          System.out.println("Dictionary uploaded!");

        }
        else
View Full Code Here

Examples of gannuNLP.dictionaries.Wiki.load()

   */
  public static void main(String[] args)throws Exception{
    Wiki w=new Wiki();
    w.setVersion(args[0]);
    w.setPath(args[1]);
    w.load("all");
    File d=new File(args[3]);
    d.mkdirs();
    w.createInputFromArticle(args[2], args[3]);
  }

View Full Code Here

Examples of gnu.javax.crypto.keyring.GnuPrivateKeyring.load()

        GnuPrivateKeyring kr2 = new GnuPrivateKeyring();
        FileInputStream fis = new FileInputStream(ksFile);
        attributes.clear();
        attributes.put(IKeyring.KEYRING_DATA_IN, fis);
        attributes.put(IKeyring.KEYRING_PASSWORD, STORE_PASSWORD);
        kr2.load(attributes);
        fis.close();

        // retrieve the same private key
        PrivateKey pk3 = (PrivateKey) kr2.getPrivateKey(ALIAS, KEY_PASSWORD);
        // check that it is still the same
View Full Code Here

Examples of gnu.javax.crypto.keyring.GnuPublicKeyring.load()

                       new ByteArrayInputStream(keyring));
        attributes.put(IKeyring.KEYRING_PASSWORD, "password".toCharArray());

        Security.addProvider(new Gnu());

        kr.load(attributes);
        harness.check(true, "load(...)");

        harness.check(kr.containsCertificate(ALIAS), "containsCertificate(...)");

        final List list = kr.get(ALIAS);
View Full Code Here

Examples of gov.nasa.jpf.autodoc.types.ConfigLoader.load()

  public void testExpandTerms() throws Exception {
    System.out.println("method> expandTerms");
   
    String filepath = "config.properties";
    ConfigLoader cl = new ConfigLoader();
    cl.load(new FileInputStream(filepath));
   
    cl.expandTerms();
    cl.list(new PrintWriter(System.out, true));
  }
 
View Full Code Here

Examples of gov.nist.scap.xccdf.document.XCCDFDocument.load()

      }

        /*
         * 1 - Load and resolve the Benchmark
         */
        if (document.load() && !options.isSuppressXccdfResolved()) {
          //File resolvedFile = File.createTempFile("xccdf-resolved", ".xml",resultDirectory);
          File resolvedFile = resultContext.getAuxiliaryFile("xccdf-resolved_", ".xml");
 
          log.info("Saving the resolved checklist to: "+resolvedFile.getCanonicalPath());
          document.write(resolvedFile);
View Full Code Here

Examples of henplus.commands.AliasCommand.load()

        _dispatcher.register(new SessionPropertyCommand(this));

        _dispatcher.register(new SystemInfoCommand());

        pluginCommand.load();
        aliasCommand.load();
        propertyCommand.load();

        Readline.setCompleter(_dispatcher);

        /* FIXME: do this platform independently */
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.