Examples of store()


Examples of org.h2.dev.ftp.FtpClient.store()

            }
        }
        rs.next();
        String content = rs.getString("content");
        conn.close();
        ftp.store("/httpdocs/automated/history.sql", new ByteArrayInputStream(buildSql.getBytes()));
        ftp.store("/httpdocs/automated/news.xml", new ByteArrayInputStream(content.getBytes()));
        ftp.store("/httpdocs/html/testOutput.html", new ByteArrayInputStream(testOutput.getBytes()));
        String jarFileName = "bin/h2-" + Constants.getVersion() + ".jar";
        if (IOUtils.exists(jarFileName)) {
            ftp.store("/httpdocs/automated/h2-latest.jar", new FileInputStream(jarFileName));
View Full Code Here

Examples of org.h2.util.SortedProperties.store()

        SortedProperties p = SortedProperties.loadProperties(propFile);
        p.setProperty("changePending", "true");
        p.setProperty("modificationDataId", "1000");
        OutputStream out = IOUtils.openFileOutputStream(propFile, false);
        try {
            p.store(out, "test");
        } finally {
            out.close();
        }
        Thread.sleep(100);
        stat.execute("select * from test");
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.store()

      CacheStore c1 = getStore(cache1);
      CacheStore c2 = getStore(cache2);

      //store each entry into each cache store directly
      c1.store(toEntry("1", "Hello world here I am"));
      c2.store(toEntry("1", "Hello world here I am"));
      c1.store(toEntry("2", "Infinispan rules the world"));
      c2.store(toEntry("2", "Infinispan rules the world"));
      c1.store(toEntry("3", "JUDCon is in Boston"));
      c2.store(toEntry("3", "JUDCon is in Boston"));
      c1.store(toEntry("4", "JBoss World is in Boston as well"));
View Full Code Here

Examples of org.ini4j.Ini.store()

                  section.add("RTP1", ftf.getContentAsString());
                  section.add("RTP2", ftf.getContentAsString());
                  section.add("RTP3", ftf.getContentAsString());

                  // save
                  ini.store(RGSSProjectHelper.getGameIniFile(project));

                } catch (Throwable t) {
                  YEx.info("Can not save " + RGSSProjectHelper.getGameIniFile(project), t);
                } finally {
                  if (f != null) {
View Full Code Here

Examples of org.ini4j.Wini.store()

        o.createNewFile();

        // save in folder
        Wini out = new Wini(o);
        out.add(id, ini.get(id));
        out.store();

        // exist?
        if (!PluginLoader.getPlugins().containsKey(id)) {
          PluginLoader.getPlugins().put(id, new PluginInfo(o.getParentFile()));
        }
View Full Code Here

Examples of org.internna.iwebmvc.repository.FileRepository.store()

        controller.documentRepository = repository;
        DocumentHolder doc = new DocumentHolder();
        doc.setIdentifier("web/images/i18n/globe.gif");
        doc.setStream(new FileInputStream(new File(doc.getIdentifier())));
        doc.setMimeType("image/jpg");
        repository.store(doc);
        uri = crypto.encrypt(doc.getUri());
    }

    @Test
    public void serve() throws Exception {
View Full Code Here

Examples of org.jasypt.properties.EncryptableProperties.store()

      // --Add a non encrypted propety
      properties.setProperty("LOGIN", "MY_LOGIN");
      // Save properties to a file
      File f = File.createTempFile("JASYPT", ".properties");
      fos = new FileOutputStream(f);
      properties.store(fos, "Sample properties file");
      System.out.printf("testPropertiesFilePropertiesEncryption : Properties file saved to '%s'\n", f.getAbsolutePath());
      // Clear all properties and reload properties file
      properties.clear();
      Assert.assertNull(properties.getProperty("PASSWORD"));
      Assert.assertNull(properties.getProperty("LOGIN"));
View Full Code Here

Examples of org.jboss.as.cmp.component.CmpEntityBeanComponentInstance.store()

        if (storeManager.getCmpConfig().isInsertAfterEjbPostCreate()) {
            storeManager.createEntity(context.getMethod(), context.getParameters(), cmpInstance.getEjbContext());
        } else {
            // Invoke store after post create
            cmpInstance.store();
        }

        final Transaction transaction = component.getTransactionManager().getTransaction();
        if (TxUtils.isActive(transaction)) {
            TransactionEntityMap.NONE.scheduleSync(transaction, cmpInstance.getEjbContext());
View Full Code Here

Examples of org.jboss.as.controller.persistence.ConfigurationPersister.store()

     */
    protected void persistConfiguration(final ModelNode model, final ConfigurationPersisterProvider configurationPersisterFactory) {
        ConfigurationPersister configurationPersister =  configurationPersisterFactory.getConfigurationPersister();
        if (configurationPersister != null) {
            try {
                configurationPersister.store(model);
            } catch (final ConfigurationPersistenceException e) {
                log.warnf(e, "Failed to persist configuration change: %s", e);
            }
        }
    }
View Full Code Here

Examples of org.jboss.as.controller.persistence.XmlConfigurationPersister.store()

        toRun.add(caputreModelOp);

        executeOperations(controller, toRun);

        //
        persister.store(model, null).commit();
        return model;
    }

    public ModelController createController(final ProcessType processType, final ModelNode model, final Setup registration) throws InterruptedException {
        final ServiceController<?> existingController = serviceContainer.getService(ServiceName.of("ModelController"));
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.