fr.paris.lutece.util.filesystem
Class UploadUtil

java.lang.Object
  extended by fr.paris.lutece.util.filesystem.UploadUtil

public final class UploadUtil
extends Object

This class provides utilities for uploaded files


Method Summary
static String cleanFileName(String strName)
          Removes special characters contained in the file name
static String cleanFilePath(String strPath)
          Removes special characters contained in a file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cleanFileName

public static String cleanFileName(String strName)
Removes special characters contained in the file name

Parameters:
strName - the file name
Returns:
strClearName the cleaned file name

cleanFilePath

public static String cleanFilePath(String strPath)
Removes special characters contained in a file path. This method performs the same transformation as cleanFileName but leaves out the slashes.

Parameters:
strPath - The path to clean
Returns:
The cleaned path


Copyright © 2014 Mairie de Paris. All Rights Reserved.