Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.util
Class FileNameValidator
java.lang.Object
  org.alfresco.util.FileNameValidator

public class FileNameValidator
extends Object
Static checker for valid file names.
Author:
Derek Hulley

Field Summary
static String
FILENAME_ILLEGAL_REGEX
          The bad file name pattern.
Constructor Summary
FileNameValidator()
Method Summary
static String
getValidFileName(String fileName)
          Replaces illegal filename characters with '_'
static boolean
isValid(String name)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
FILENAME_ILLEGAL_REGEX
public static final String FILENAME_ILLEGAL_REGEX
The bad file name pattern.
See Also:
Constant Field Values
Constructor Detail
FileNameValidator
public FileNameValidator()
Method Detail
isValid
public static boolean isValid(String name)

getValidFileName
public static String getValidFileName(String fileName)
Replaces illegal filename characters with '_'

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.