Examples of load()


Examples of flex2.tools.oem.Library.load()

      lib.addArchiveFile(key, new File(((VirtualFile) m.get(key)).getName()));
    }
       
        try
    {
            lib.load(new BufferedInputStream(new FileInputStream(new File(c2.getOutput() + ".incr"))));
            // load() wipes out our ThreadLocal and we lose our logger
            ThreadLocalToolkit.setLogger(console);
    }
    catch (IOException ex)
    {
View Full Code Here

Examples of fmpp.setting.Settings.load()

    final String relpath = relpathTmp;
    File templateDir = new File(templateDirName);
    System.out.println("AppDoc: using template directory " + templateDir);
    Settings settings = new fmpp.setting.Settings(templateDir);
    settings.define("outFileExtension", Settings.TYPE_STRING, false, true);
    settings.load(new File(templateDir, "config.fmpp"));
    // the directory that will contain all output files
    System.out.println("AppDoc: using output directory " + outputDirName);
    settings.setWithString("outputRoot", outputDirName);
    String extension = (String) settings.get("outFileExtension");
    if (extension == null) {  // if somebody
View Full Code Here

Examples of fr.dyade.aaa.util.Transaction.load()

    // Retrieving the messages individually persisted.
    for (int i = 0; i < names.length; i++) {
      if (names[i].charAt(names[i].length() - 1) != 'B') {
        try {
          Message msg = (Message) tx.load(names[i]);
          msg.txname = names[i];

          if (logger.isLoggable(BasicLevel.DEBUG))
            logger.log(BasicLevel.DEBUG, "loadAll: names[" + i + "] = " + msg);
          messages.add(msg);
View Full Code Here

Examples of fr.insalyon.citi.golo.compiler.GoloClassLoader.load()

  private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();

  public MethodHandle golo(String file, String func, int argCount) {
    GoloClassLoader classLoader = new GoloClassLoader();
    String filename = "snippets/golo/" + file + ".golo";
    Class<?> module = classLoader.load(filename, CodeLoader.class.getResourceAsStream("/" + filename));
    try {
      return LOOKUP.findStatic(module, func, MethodType.genericMethodType(argCount));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of fr.irit.halterego.rrl_ggp.base.RRLAlgorithm.load()

            Properties p = new Properties(System.getProperties());
            p.load(new FileInputStream(new File(config_path)));
            System.setProperties(p);
           
            RRLAlgorithm algorithm = (RRLAlgorithm)AgentProperties.getAlgorithmClass().newInstance();
            algorithm.load();
           
            GameInformation game_infos = GameReasoner.createGameInfo(path_to_gdl);
           
            List<Agent> agents = new ArrayList<Agent>();
            for(TermObject t : game_infos.getRoles())
View Full Code Here

Examples of fr.valhalla.mailcheck.utils.EncryptedProperties.load()

        if ((masterpassword != null) && (masterpassword.length() > 0)) {
            try {
                EncryptedProperties props = new EncryptedProperties(masterpassword);
                try {
                    FileInputStream in = new FileInputStream("fr.valhalla.mailcheck.accounts.properties");
                    props.load(in);
                    in.close();
                } catch (FileNotFoundException e) {
                    // Le fichier n'existe pas : on le crée
                    try {
                        props.store(new FileOutputStream(new File("fr.valhalla.mailcheck.accounts.properties")), null);
View Full Code Here

Examples of games.stendhal.client.sprite.TilesetGroupAnimationMap.load()

    if (url != null) {
      try {
        final InputStream in = url.openStream();

        try {
          map.load(in);
        } finally {
          in.close();
        }
      } catch (final IOException ex) {
        logger.error("Error loading tileset animation map", ex);
View Full Code Here

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

    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();

    for (final DefaultCreature c : creatures) {
      count.put(c.getCreatureName(), 0);
    }
View Full Code Here

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

   * Build the items tables
   */
  private void buildItemTables() {
    try {
      final ItemGroupsXMLLoader loader = new ItemGroupsXMLLoader(new URI("/data/conf/items.xml"));
      final List<DefaultItem> items = loader.load();

      for (final DefaultItem item : items) {
        final String clazz = item.getItemName();

        if (classToItem.containsKey(clazz)) {
View Full Code Here

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

  private List<DefaultItem> loadItemsList(String ref) throws SAXException {
    ItemsXMLLoader itemsLoader = new ItemsXMLLoader();

    try {
      List<DefaultItem> items = itemsLoader.load(new URI(ref));

      sortItems(items);

      return items;
    } catch (URISyntaxException e) {
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.