Examples of writeToFile()


Examples of org.htmlcleaner.SimpleXmlSerializer.writeToFile()

    // Write the resource content to disk. This step is needed, as the preview
    // generator can only handle files.
    try {
      xhtmlFile = File.createTempFile("xhtml", ".xml");
      Serializer xhtmlSerializer = new SimpleXmlSerializer(xhtmlProperties);
      xhtmlSerializer.writeToFile(xhtmlNode, xhtmlFile.getAbsolutePath(), "UTF-8");
    } catch (IOException e) {
      logger.error("Error creating temporary copy of file content at " + xhtmlFile, e);
      FileUtils.deleteQuietly(xhtmlFile);
      throw e;
    } finally {
View Full Code Here

Examples of org.objectstyle.wolips.eogenerator.core.model.EOGeneratorModel.writeToFile()

        IFile eogenFile = _modelFile.getWorkspace().getRoot().getFileForLocation(new Path(eogenPath));
        for (int dupeNum = 0; eogenFile.exists(); dupeNum++) {
          eogenPath = eogenBasePath + dupeNum + extension;
          eogenFile = _modelFile.getWorkspace().getRoot().getFileForLocation(new Path(eogenPath));
        }
        eogenModel.writeToFile(eogenFile, null);
      }
      if (!failures.isEmpty()) {
        Display.getDefault().asyncExec(new Runnable() {
          public void run() {
            new EOModelErrorDialog(new Shell(), failures).open();
View Full Code Here

Examples of org.olat.ims.cp.CPManager.writeToFile()

    } else {
      CPManager cpMgm = CPManager.getInstance();
      String path = treeModel.getPath(identifier);
      treeCtr.removePath(path);
      cpMgm.removeElement(cp, identifier, deleteResource);
      cpMgm.writeToFile(cp);
    }
  }

  /**
   * copies the page with given nodeID
View Full Code Here

Examples of org.olat.ims.cp.CPManager.writeToFile()

  private String copyPage(CPPage page) {
    String newIdentifier = null;
    if (page != null) {
      CPManager cpMgm = CPManager.getInstance();
      newIdentifier = cpMgm.copyElement(cp, page.getIdentifier());
      cpMgm.writeToFile(cp);
    }
    return newIdentifier;
  }

  /**
 
View Full Code Here

Examples of org.olat.ims.cp.CPManager.writeToFile()

      // adds new page as child of currentPage
      newNodeID = cpMgm.addBlankPage(cp, page.getTitle(), currentPage.getIdentifier());
    }
    setCurrentPage(new CPPage(newNodeID, cp));

    cpMgm.writeToFile(cp);
    // treeCtr.getInitialComponent().setDirty(true);
    return newNodeID;
  }

  /**
 
View Full Code Here

Examples of org.olat.ims.cp.CPManager.writeToFile()

   */
  protected void updatePage(CPPage page) {
    setCurrentPage(page);
    CPManager cpMgm = CPManager.getInstance();
    cpMgm.updatePage(cp, page);
    cpMgm.writeToFile(cp);
    if (page.isOrgaPage()) {
      // TODO:GW Shall the repo entry title be updated when the organization
      // title changes?
      // // If the organization title changed, also update the repo entry
      // // title.
View Full Code Here

Examples of org.olat.ims.cp.CPManager.writeToFile()

   */
  private boolean movePage(MoveTreeNodeEvent event) {
    CPManager cpMgm = CPManager.getInstance();
    String movedNodeId = event.getNodeId();
    cpMgm.moveElement(cp, movedNodeId, event.getNewParentNodeId(), event.getPosition());
    cpMgm.writeToFile(cp);
    selectTreeNodeById(movedNodeId);
    return true;
  }

  /**
 
View Full Code Here

Examples of org.openengsb.labs.paxexam.karaf.container.internal.examAdaptions.ExamFeaturesFile.writeToFile()

                examFeaturesFile = ExamFeaturesFileFactory.createExamFeaturesFile("", startLevel);
            } else {
                StringBuilder extension = extractExtensionString(subsystem);
                examFeaturesFile = ExamFeaturesFileFactory.createExamFeaturesFile(extension.toString(), startLevel);
            }
            examFeaturesFile.writeToFile(featuresXmlFile);
            examFeaturesFile.adaptDistributionToStartExam(karafHome, featuresXmlFile);

            long startedAt = System.currentTimeMillis();

            runner.exec(environment, karafBase, javaHome.toString(), javaOpts.toArray(new String[]{}),
View Full Code Here

Examples of org.robovm.cocoatouch.foundation.NSMutableDictionary.writeToFile()

    // if it fails to get an existing dictionary, create a new one.
    if (nsDictionary == null) {
      Gdx.app.debug("IOSApplication", "NSDictionary not found, creating a new one");
      nsDictionary = new NSMutableDictionary();
      boolean fileWritten = nsDictionary.writeToFile(finalPath, false);
      if (fileWritten)
        Gdx.app.debug("IOSApplication", "NSDictionary file written");
      else
        Gdx.app.debug("IOSApplication", "Failed to write NSDictionary to file " + finalPath);
    }
View Full Code Here

Examples of org.voltdb.utils.InMemoryJarfile.writeToFile()

    {
        InMemoryJarfile memCatalog = CatalogUpgradeTools.loadFromPath(srcJar);
        String[] bi = getBuildInfoLines(memCatalog);
        bi[0] = buildstring;
        memCatalog.put(CatalogUtil.CATALOG_BUILDINFO_FILENAME, StringUtils.join(bi, '\n').getBytes());
        memCatalog.writeToFile(new File(dstJar));
    }

    /**
     * Inject DDL statement.
     * @param memCatalog
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.