Examples of writeToFile()


Examples of org.apache.beehive.netui.compiler.genmodel.GenValidationModel.writeToFile()

            GenValidationModel validationModel = new GenValidationModel( publicClass, app, getEnv() );
           
            if ( ! validationModel.isEmpty() )
            {
                app.setValidationModel( validationModel );
                validationModel.writeToFile();
            }
           
            generateStrutsConfig( app, publicClass );
           
            // First, write out XML for any fields annotated with @Jpf.SharedFlowField or @Control.
View Full Code Here

Examples of org.apache.syncope.installer.utilities.FileSystemUtils.writeToFile()

        handler.logOutput("Configure web.xml file according to " + selectedContainer + " properties", true);
        InstallLog.getInstance().info("Configure web.xml file according to " + selectedContainer + " properties");

        if (withDataSource) {
            fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH), CoreWebXml.
                    withDataSource());
            switch (selectedContainer) {
                case JBOSS:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH),
                            CoreWebXml.withDataSourceForJBoss());
View Full Code Here

Examples of org.apache.tez.runtime.library.common.sort.impl.TezSpillRecord.writeToFile()

    } finally {
      if (out != null) {
        out.close();
      }
    }
    finalSpillRecord.writeToFile(finalIndexPath, conf);
    fileOutputBytesCounter.increment(indexFileSizeEstimate);
    LOG.info("Finished final spill after merging : " + numSpills.get() + " spills");
  }

  private void writeLargeRecord(final Object key, final Object value, final int partition,
View Full Code Here

Examples of org.freeplane.features.url.mindmapmode.MFileManager.writeToFile()

        final NodeStyleController nodeStyleController = NodeStyleController.getController(modeController);
        updateDefaultStyle(nodeStyleController, defaultStyleMap);
        updateNoteStyle(nodeStyleController, defaultStyleMap);

        try {
          fm.writeToFile(defaultStyleMap, userDefault);
        }
        catch (IOException e) {
        }

View Full Code Here

Examples of org.gudy.azureus2.plugins.torrent.Torrent.writeToFile()

            //create a blank file of specified size. (using the temporary name.)
            File saveLocation = AETemporaryFileHandler.createTempFile();
            File baseDir = saveLocation.getParentFile();
            File blankFile = new File(baseDir,fileName);
            File blankTorrentFile = new File( baseDir, "speedTestTorrent.torrent" );
            torrent.writeToFile(blankTorrentFile);

            URL  announce_url = torrent.getAnnounceURL();
           
            if ( announce_url.getProtocol().equalsIgnoreCase( "https" )){
             
View Full Code Here

Examples of org.gudy.azureus2.plugins.torrent.Torrent.writeToFile()

         
          Torrent t = new TorrentImpl( torrent );
         
          t.setDefaultEncoding();
         
          t.writeToFile( torrent_file );
         
          download = dm.addDownload( t, torrent_file, data_file );
         
          download.setFlag( Download.FLAG_DISABLE_AUTO_FILE_MOVE, true );
View Full Code Here

Examples of org.gudy.azureus2.plugins.torrent.Torrent.writeToFile()

        Torrent t = (Torrent)data;
       
        try{
          File f = AETemporaryFileHandler.createTempFile();
         
          t.writeToFile( f );
         
          TorrentOpener.openTorrent( f.toString());

        }catch( Throwable e ){
         
View Full Code Here

Examples of org.gudy.azureus2.pluginsimpl.local.torrent.TorrentImpl.writeToFile()

            //create a blank file of specified size. (using the temporary name.)
            File saveLocation = AETemporaryFileHandler.createTempFile();
            File baseDir = saveLocation.getParentFile();
            File blankFile = new File(baseDir,fileName);
            File blankTorrentFile = new File( baseDir, "speedTestTorrent.torrent" );
            torrent.writeToFile(blankTorrentFile);

            URL  announce_url = torrent.getAnnounceURL();
           
            if ( announce_url.getProtocol().equalsIgnoreCase( "https" )){
             
View Full Code Here

Examples of org.gudy.azureus2.pluginsimpl.local.torrent.TorrentImpl.writeToFile()

         
          Torrent t = new TorrentImpl( torrent );
         
          t.setDefaultEncoding();
         
          t.writeToFile( torrent_file );
         
          download = dm.addDownload( t, torrent_file, data_file );
         
          download.setFlag( Download.FLAG_DISABLE_AUTO_FILE_MOVE, true );
View Full Code Here

Examples of org.htmlcleaner.Serializer.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
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.