public static void validateFileName(String fileName) {
		NameValidator.ValidateFileDirectoryHelper(fileName, SR.FILE);

		if (fileName.endsWith("/")) {
			throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.INVALID_RESOURCE_NAME, SR.FILE));
		}

		for (String s : NameValidator.RESERVED_FILE_NAMES) {
			if (s.equalsIgnoreCase(fileName)) {
				throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.INVALID_RESOURCE_RESERVED_NAME, SR.FILE));
			}
		}
	}
public static void validateFileName(String fileName) {
		NameValidator.ValidateFileDirectoryHelper(fileName, SR.FILE);

		if (fileName.endsWith("/")) {
			throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.INVALID_RESOURCE_NAME, SR.FILE));
		}

		for (String s : NameValidator.RESERVED_FILE_NAMES) {
			if (s.equalsIgnoreCase(fileName)) {
				throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.INVALID_RESOURCE_RESERVED_NAME, SR.FILE));
			}
		}
	}
public static void validateFileName ( String fileName ) { NameValidator . ValidateFileDirectoryHelper ( fileName , SR . FILE ) ; if ( fileName . endsWith ( "/" ) ) { throw new IllegalArgumentException ( String . format ( Utility . LOCALE_US , SR . INVALID_RESOURCE_NAME , SR . FILE ) ) ; } for ( String s : NameValidator . RESERVED_FILE_NAMES ) { if ( s . equalsIgnoreCase ( fileName ) ) { throw new IllegalArgumentException ( String . format ( Utility . LOCALE_US , SR . INVALID_RESOURCE_RESERVED_NAME , SR . FILE ) ) ; } } }
Checks if a file name is valid.

@param fileName
A String representing the file name to validate.
Checks if a file name is valid .