issrg.utils.handler
Class ValidFileName

java.lang.Object
  extended by issrg.utils.handler.ValidFileName

public class ValidFileName
extends java.lang.Object

Author:
ls97

Constructor Summary
ValidFileName()
          Creates a new instance of ValidFileName
 
Method Summary
 java.lang.String getName(java.lang.String fileName)
          to get a valid URL according to a filename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidFileName

public ValidFileName()
Creates a new instance of ValidFileName

Method Detail

getName

public java.lang.String getName(java.lang.String fileName)
                         throws ValidFileNameException
to get a valid URL according to a filename

Parameters:
fileName, - which is a file name. The file is allocated in the server at the same directory as this class is
Returns:
the valid file name, otherwise an exception is thrown
Throws:
ValidFileNameException