fr.paris.lutece.plugins.form.modules.processornotifysender.utils
Class FileUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.form.modules.processornotifysender.utils.FileUtils

public final class FileUtils
extends java.lang.Object

FileUtils


Method Summary
static void addFileResponseToFolder(Response response, java.lang.String strFolder)
          This method extracts a specific file to a tmp folder
static void cleanFolder(java.lang.String strFolder)
          Method to clean a specific repository
static void createFolder(java.lang.String strPath)
          Method to create a specific folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cleanFolder

public static void cleanFolder(java.lang.String strFolder)
Method to clean a specific repository

Parameters:
strFolder - name of repository

addFileResponseToFolder

public static void addFileResponseToFolder(Response response,
                                           java.lang.String strFolder)
                                    throws java.io.IOException
This method extracts a specific file to a tmp folder

Parameters:
response - the response of the form
strFolder - the temporary folder for extraction
Throws:
java.io.IOException - exception if the copy from byte[] to File has an error

createFolder

public static void createFolder(java.lang.String strPath)
Method to create a specific folder

Parameters:
strPath - repository path


Copyright © 2012 Mairie de Paris. All Rights Reserved.