Examples of store()


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

        ksFile.deleteOnExit();
        FileOutputStream fos = new FileOutputStream(ksFile);
        HashMap attributes = new HashMap();
        attributes.put(IKeyring.KEYRING_DATA_OUT, fos);
        attributes.put(IKeyring.KEYRING_PASSWORD, STORE_PASSWORD);
        kr1.store(attributes);
        fos.flush();
        fos.close();

        // re-load it from the persisted file
        GnuPrivateKeyring kr2 = new GnuPrivateKeyring();
View Full Code Here

Examples of hermes.store.MessageStore.store()

         {
            final Message m = (Message) iter.nextElement();

            if (m != null)
            {
               messageStore.store(m);
              
               if (++messagesRead % commitInterval == 0)
               {
                  messageStore.checkpoint();
               }
View Full Code Here

Examples of io.apigee.trireme.core.internal.GZipHeader.store()

                   checksum = new CRC32();

                   GZipHeader hdr = new GZipHeader();
                   hdr.setTimestamp(System.currentTimeMillis());
                   Buffer.BufferImpl buf =
                       Buffer.BufferImpl.newBuffer(cx, this, hdr.store(), false);
                   log.debug("Sending GZIP header");
                   cb.call(cx, this, this, new Object[] { Context.getUndefinedValue(), buf, false });
               }
               headerDone = true;
            }
View Full Code Here

Examples of io.fabric8.insight.storage.StorageService.store()

    @Override
    public void store(String type, long timestamp, String jsonData) {
        StorageService storage = this.tracker.getService();
        if (storage != null) {
            storage.store(type, timestamp, jsonData);
        }
    }

}
View Full Code Here

Examples of it.eng.spagobi.engines.qbe.SmartFilterAnalysisState.store()

    String isPublic = "false";
    if (PUBLIC_SCOPE.equalsIgnoreCase(scope))
      isPublic = "true";

    serviceResponse = contentServiceProxy.saveSubObject(documentId, name,
        description, isPublic, new String(analysisState.store()));

    return serviceResponse;
  }
 
 
View Full Code Here

Examples of ivory.core.data.dictionary.PrefixEncodedLexicographicallySortedDictionary.store()

    assertFalse(iter2.hasNext());
   
    assertEquals(0.6923077, m.getCompresssionRatio(), 10e-6);

    FileSystem fs = FileSystem.getLocal(new Configuration());
    m.store("tmp.dat", fs);

    PrefixEncodedLexicographicallySortedDictionary n =
        PrefixEncodedLexicographicallySortedDictionary.load(new Path("tmp.dat"), fs);

    // Verify size.
View Full Code Here

Examples of jade.util.ExtendedProperties.store()

                                FileOutputStream out =
                                    new FileOutputStream(fileName);
        // do not save -conf=true otherwise
        // -conf <fileName starts the GUI again
        propToSave.put(BootProfileImpl.CONF_KEY,"false");
                                propToSave.store(out, TITLE);
                                out.close();

                                outProp = propToSave;

                                //dispose();
View Full Code Here

Examples of java.security.KeyStore.store()

      FileOutputStream fos = new FileOutputStream(file);
      try {
          KeyStore store = KeyStore.getInstance("JCEKS"); //$NON-NLS-1$
          store.load(null,null);
        store.setKeyEntry(DEFAULT_ALIAS, key, DEFAULT_STORE_PASSWORD.toCharArray(),null);
        store.store(fos, DEFAULT_STORE_PASSWORD.toCharArray());
      } catch (GeneralSecurityException e) {
        throw new CryptoException(e);
      } finally {
        fos.close();
     
View Full Code Here

Examples of java.util.Properties.store()

      }
      f=new File(dir,service.getId()+".service");
      try {
        StreamUtilities.outputStream(f, new OutputStreamProcessor() {
          public void process(OutputStream outputStream) throws IOException {
            prop.store(outputStream, "settings");
          }
        });
      } catch (IOException exc) {
        String msg = mLocalizer.msg("error.4", "Saving settings for plugin {0} failed!\n({1})",
            service.getInfo().getName(), f.getAbsolutePath(), exc);
View Full Code Here

Examples of javax.portlet.PortletPreferences.store()

         UIRegisterEditMode uiForm = event.getSource();
         boolean useCaptcha = uiForm.getUIFormCheckBoxInput(USE_CAPTCHA).isChecked();
         PortletRequestContext pcontext = (PortletRequestContext)WebuiRequestContext.getCurrentInstance();
         PortletPreferences pref = pcontext.getRequest().getPreferences();
         pref.setValue(USE_CAPTCHA, Boolean.toString(useCaptcha));
         pref.store();
        
         //Show/hide the captcha input in UIRegisterInputSet
         UIRegisterPortlet registerPortlet = uiForm.getParent();
         UIRegisterInputSet registerInputSet = registerPortlet.findFirstComponentOfType(UIRegisterInputSet.class);
        
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.