Examples of save()


Examples of uk.co.caprica.vlcj.player.MediaMeta.save()

        // Keep the original description to restore it later
        String originalDescription = mediaMeta.getDescription();

        // Write new meta data
        mediaMeta.setDescription("Oh isn't this a lovely tune.");
        mediaMeta.save();

        mediaMeta.release();

        // Re-read to confirm the updated value
        mediaMeta = factory.getMediaMeta(args[0], true);
View Full Code Here

Examples of unbbayes.io.XMLBIFIO.save()

  public void saveNetworkFile(File file, ProbabilisticNetwork pn){
      XMLBIFIO netIO = new XMLBIFIO();
   
    try {
      netIO.save(file, pn);
    } catch (IOException e) {
      e.printStackTrace();
    }  
  }
 
View Full Code Here

Examples of utils.DAOState.save()

    @Override
    public void save(Object obj) {
        if(obj instanceof DAOState) {
            log.debug("SAVEEX: " + obj.toString());
            DAOState ds = (DAOState) obj;
            ds.save(getHibernateTemplate());
        } else {
            log.debug("SAVE: " + obj.toString());
            if (obj instanceof  EntityWithId) {
                if (((EntityWithId)obj).getId() == 0) {
                    getHibernateTemplate().save(obj);
View Full Code Here

Examples of vn.pyco.tinycms.services.BootManager.save()

                    logger.error("An error ocurred when initilizing entities.", e);
                }
            }
           
            bootManager.setSetup(false);
            bootManager.save();
        }
       
        initializer.initializeApplication(context);
    }
View Full Code Here

Examples of weka.gui.SaveBuffer.save()

      saveOutput.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      SaveBuffer m_SaveOut = new SaveBuffer(null, panel);
      StringBuffer sb = m_history.getNamedBuffer(selectedName);
      if (sb != null) {
        m_SaveOut.save(sb);
      }
    }
  });
    } else {
      saveOutput.setEnabled(false);
View Full Code Here

Examples of widgets.shout.models.Shout.save()

  }

  public Object endpoint(String name, Params params) throws Exception {
    if(params._contains("create")) {
      Shout s = new Shout(params.get("author"),params.get("text"));
      s.save();     
      return true;
    } else {
      Feed out = new Feed();
      List<Shout> shouts = Shout.find("order by posted desc").fetch(5);
      long limit = 1000 * 60 * 60 * 24 * 5; // 5 days in ms
View Full Code Here

Examples of wolf.util.OBJ.save()

          for(int j=0; j<cb.lots.size(); j++){
            cb.lots.get(j).asOBJ(obj);
          }
        }
       
        obj.save("data/city.obj");
      }else{
        OBJ obj = new OBJ(false);
        for(int i=0; i<fb.buildings.size(); i++){
          fb.buildings.get(i).asOBJ(obj);
        }
View Full Code Here

Examples of wolf.util.TextFileOutput.save()

          s = s.replaceAll("POLYGON", "MULTIPOLYGON (");
        }
        tf.data.set(i, s);
      }
      tf.data.add(")");
      tf.save(filepathBlocks);
    }
    {
      TextFileOutput tf = new TextFileOutput();
      for(CityBlock b:blocks){
        if(b.lots != null){
View Full Code Here

Examples of xbird.util.resource.PropertyMap.save()

        writeProperties(docName, properties);

        // #3 write str chunk
        _strChunk.flush(coll, docName, properties);

        properties.save();

        // #4 write block in segment paged files
        FixedSegments paged = getPaged(coll, docName);
        pageOutSegments(paged, 0, true);
        close();
View Full Code Here

Examples of yalp.mvc.Scope.Session.save()

        setSendOnlyIfChangedConstant(true);
        mockRequestAndResponse();

        // Change nothing in the session
        session = Session.restore();
        session.save();
        assertNull(Response.current().cookies.get(Scope.COOKIE_PREFIX + "_SESSION"));

        mockRequestAndResponse();
        // Change the session
        session = Session.restore();
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.