Package org.mcisb.util.io

Examples of org.mcisb.util.io.FileUtils


   */
  protected Serializable doTask() throws Exception
  {
    // Need to create a directory tree underneath the selected directory:
    final File parentDirectory = new File( (String)CollectionUtils.getFirst( (Collection)bean.getProperty( org.mcisb.util.PropertyNames.EXPORT_FILEPATHS ) ) );
    final File directory = new FileUtils().mkdir( parentDirectory, new FileUtils().convertCharacters( node.getDisplayName() ) );
    final FileExporter exporter = new FileExporter();
   
    if( experiment )
    {
      exporter.exportExperiment( directory, recordModelFactory, node, bean.getBoolean( org.mcisb.beacon.spottedexperiment.PropertyNames.XML ), bean.getBoolean( org.mcisb.beacon.spottedexperiment.PropertyNames.LSM ), bean.getBoolean( org.mcisb.beacon.spottedexperiment.PropertyNames.EXCEL ) );
View Full Code Here


        final List resultNodes = new NodeUtils().getChildNodes( spotNode, "RESULT" ); //$NON-NLS-1$
     
      for( Iterator iterator = resultNodes.iterator(); iterator.hasNext(); )
      {
        NavigationTreeNode resultNode = (NavigationTreeNode)iterator.next();
        os = new FileOutputStream( new File( directory, new FileUtils().convertCharacters( resultNode.getDisplayName() ) + ".xls" ) ); //$NON-NLS-1$
        generateData( resultNode ).write( os );
        os.close();
      }
      }
      finally
View Full Code Here

TOP

Related Classes of org.mcisb.util.io.FileUtils

Copyright © 2018 www.massapicom. 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.