Examples of save()


Examples of org.vietspider.common.io.DataWriter.save()

        }
       
        if(bytes == null) continue;
        String fileName = proxies[i].replace('.', '_');
        fileName = fileName.replace(':', '_');
        writer.save(new File(folder, fileName+".html"), bytes);
       
        System.out.println(bytes.length+ " : "+ (bytes.length > 15000));
        if(bytes.length > 30000) {
          String value = proxyHost + ":" + proxyPort;
          if(aliveList.contains(value)) continue;
View Full Code Here

Examples of org.vietspider.common.io.PropertiesFile.save()

  }
 
  public synchronized void store() {
    PropertiesFile file = new PropertiesFile(true);
    try {
      file.save(UtilFile.getFile("client", "config.properties"), properties);
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
  }
 
View Full Code Here

Examples of org.w3.x2000.x09.xmldsig.SignatureDocument.save()

        }
       
        try {
            OutputStream os = sigPart.getOutputStream();
            SignatureDocument sigDoc = SignatureDocument.Factory.parse(document);
            sigDoc.save(os, xo);
            os.close();
        } catch (Exception e) {
            throw new MarshalException("Unable to write signature document", e);
        }
       
View Full Code Here

Examples of org.w3.x2001.xmlSchema.SchemaDocument.save()

            File inputFile = (File)schemaDocs.get(doc);
            File outputFile = outputFileFor(inputFile, basedir, outdir);
            if (outputFile == null)
                System.out.println("Cannot copy " + inputFile);
            else
                doc.save(outputFile, new XmlOptions().setSavePrettyPrint().setSaveAggresiveNamespaces());
        }
       
        for (Iterator i = commonFiles.keySet().iterator(); i.hasNext(); )
        {
            SchemaDocument doc = (SchemaDocument)i.next();
View Full Code Here

Examples of org.wikipediacleaner.utils.Configuration.save()

      }
      tmp = tmp.trim();
      Configuration config = Configuration.getConfiguration();
      config.setString(
          null, ConfigurationValueString.PAGE_NAME, tmp);
      config.save();
      Controller.runDisambiguationAnalysis(tmp, wiki);
      return;
    }

    // Analyze a single page
View Full Code Here

Examples of org.woped.config.metrics.ConfigurationDocument.save()

        if(algorithmOrigin.get(metricID) == fileID) { 
          Algorithm algo = algorithmsMap.get(metricID);
          toBeSavedConfig.getConfiguration().getAlgorithms().addNewAlgorithm().set(algo);
        }
     
      toBeSavedConfig.save(new File(fileMap.get(fileID)), xmlOptions);
      confMap.put(fileID, toBeSavedConfig);
      LoggerManager.info(Constants.CONFIG_LOGGER,
          rb.getString("Exit.Config.SavingSuccess") + ": " + fileMap.get(fileID));
      return true;
    } catch (IOException e) {
View Full Code Here

Examples of org.woped.core.config.IMetricsConfiguration.save()

      list.add((String) MetricsBuilderPanel.jVariableListTab3.getModel()
          .getElementAt(i));

    IMetricsConfiguration metricsConfig = ConfigurationManager
        .getMetricsConfiguration();
    if (metricsConfig.save(list, exportFile))
      JOptionPane.showMessageDialog(null, "Export finished succesfully.");
    else
      JOptionPane.showMessageDialog(null, "Error while exporting.");
  }
View Full Code Here

Examples of org.wsI.testing.x2003.x03.log.LogDocument.save()

    addMonitorConfig( log );
    addMessageConfig( log, modelItem );

    logFile = File.createTempFile( "wsi-analyzer-log", ".xml" );
    logDoc.save( logFile );
    return logFile;
  }

  private File buildConfig( File reportFile, File logFile, WsdlRequest modelItem ) throws IOException
  {
View Full Code Here

Examples of org.wsI.testing.x2004.x07.analyzerConfig.ConfigurationDocument.save()

    ConfigurationDocument configDoc = createConfigFile( reportFile, settings, ( WsdlInterface )modelItem );
    configFile = configDoc.toString();

    File file = File.createTempFile( "wsi-analyzer-config", ".xml" );

    configDoc.save( file );

    ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
    builder.startScript( wsiToolDir.getAbsolutePath() + File.separator + "Analyzer", ".bat", ".sh" );

    builder.addArgs( "-config", file.getAbsolutePath() );
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.editor.WYSIWYGEditPage.save()

        // Verify the document space in the metadata
        Assert.assertEquals("\u0219", editPage.getMetaDataValue("space"));

        // Save the space to verify it can be saved with a non-ascii name
        ViewPage savedPage = editPage.save();
        Assert.assertEquals("\u0219", savedPage.getMetaDataValue("space"));
    }

    /**
     * Checks that non-ASCII characters are allowed in the page name.
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.