Examples of writeXml()


Examples of net.yacy.document.Document.writeXML()

    }
   
    public void writeXML(OutputStreamWriter os) throws IOException {
        Document doc = document();
        if (doc != null) {
            doc.writeXML(os, this.getDate());
        }
    }
}
View Full Code Here

Examples of net.yacy.document.content.DCEntry.writeXML()

                    if (outputfiletmp.exists()) outputfiletmp.delete();
                    if (outputfile.exists()) outputfile.delete();
                    osw = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(outputfiletmp)), "UTF-8");
                    osw.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + SurrogateReader.SURROGATES_MAIN_ELEMENT_OPEN + "\n");
                }
                e.writeXML(osw);
                c++;
                if (c >= maxEntriesInFile) {
                    osw.write("</surrogates>\n");
                    osw.close();
                    outputfiletmp.renameTo(outputfile);
View Full Code Here

Examples of org.apache.geronimo.system.configuration.GBeanOverride.writeXml()

            }
            if(data.getConfigXmls().length > 0) {
                Element content = doc.createElement("config-xml-content");
                for (int i = 0; i < data.getConfigXmls().length; i++) {
                    GBeanOverride override = data.getConfigXmls()[i];
                    Element gbean = override.writeXml(doc, content);
                    gbean.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/attributes-1.1");
                }
                config.appendChild(content);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.system.configuration.GBeanOverride.writeXml()

        }
        if(data.getConfigXmls().length > 0) {
            Element content = doc.createElement("config-xml-content");
            for (int i = 0; i < data.getConfigXmls().length; i++) {
                GBeanOverride override = data.getConfigXmls()[i];
                Element gbean = override.writeXml(doc, content);
                gbean.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/attributes-1.1");
            }
            config.appendChild(content);
        }
        return doc;
View Full Code Here

Examples of org.apache.geronimo.system.configuration.GBeanOverride.writeXml()

        }
        if(data.getConfigXmls().length > 0) {
            Element content = doc.createElement("config-xml-content");
            for (int i = 0; i < data.getConfigXmls().length; i++) {
                GBeanOverride override = data.getConfigXmls()[i];
                Element gbean = override.writeXml(doc, content);
                gbean.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/attributes-1.1");
            }
            config.appendChild(content);
        }
        return doc;
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.writeXml()

    conf.set("hoop.base.url", getJettyURL().toExternalForm());
    conf.set("hoop.proxyuser." + getHadoopProxyUser() + ".groups", getHadoopProxyUserGroups());
    conf.set("hoop.proxyuser." + getHadoopProxyUser() + ".hosts", getHadoopProxyUserHosts());
    File hoopSite = new File(new File(homeDir, "conf"), "hoop-site.xml");
    OutputStream os = new FileOutputStream(hoopSite);
    conf.writeXml(os);
    os.close();

    File currentDir = new File("foo").getAbsoluteFile().getParentFile();
    if (currentDir.getName().equals("target")) {
      currentDir = currentDir.getParentFile();
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.writeXml()

    for (Enumeration<?> e = confProps.propertyNames(); e.hasMoreElements();) {
      String key = (String) e.nextElement();
      config.set(key, confProps.getProperty(key));
    }

    config.writeXml(fos);
    fos.close();
  }

 
  /**
 
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.writeXml()

    if(!lFile.exists()){
      lFile.mkdir();
    }
    String mapredConf = localDir + File.separator + "mapred-site.xml";
    File file = new File(mapredConf);
    origconf.writeXml(new FileOutputStream(file));   
    Configuration daemonConf =  cluster.getJTClient().getProxy().getDaemonConf();
    Assert.assertTrue("Dummy varialble is expected to be null before restart.",
        daemonConf.get(DUMMY_CONFIG_STRING) == null);
    String newDir = cluster.getClusterManager().pushConfig(localDir);
    cluster.stop();
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.writeXml()

    TrackerDistributedCacheManager.determineCacheVisibilities(subConf);
    // ****** End of imitating JobClient code

    Path jobFile = new Path(TEST_ROOT_DIR, "job.xml");
    FileOutputStream os = new FileOutputStream(new File(jobFile.toString()));
    subConf.writeXml(os);
    os.close();

    // ****** Imitate TaskRunner code.
    TrackerDistributedCacheManager manager =
      new TrackerDistributedCacheManager(conf, taskController);
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.writeXml()

        c.set("testing.conf", "added");
        File file = create(path);
        try {
            OutputStream s = new FileOutputStream(file);
            try {
                c.writeXml(s);
            } finally {
                s.close();
            }
        } catch (IOException e) {
            throw new AssertionError(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.