org.jtheque.films.utils
Class FileUtils

java.lang.Object
  extended by org.jtheque.films.utils.FileUtils

public final class FileUtils
extends Object

This class provide utilities function to file.

Author:
Baptiste Wicht

Method Summary
static URL getLocalisedPage(String id)
          Return the HTML page's link for the id in the good language.
static String prepareFilePath(String destinationPath)
          Prepare a string to be a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prepareFilePath

public static String prepareFilePath(String destinationPath)
Prepare a string to be a file. It seems deleting special characters with normal characters.

Parameters:
destinationPath - The string path to prepare.
Returns:
The prepared path.

getLocalisedPage

public static URL getLocalisedPage(String id)
Return the HTML page's link for the id in the good language.

Parameters:
id - The id of the localised page
Returns:
The HTML page's link


Copyright © 2010 JTheque. All Rights Reserved.