public class DLValidatorUtil
extends Object
Constructor and Description |
---|
DLValidatorUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
fixName(String name) |
static DLValidator |
getDLValidator() |
static boolean |
isValidName(String name) |
void |
setDLValidator(DLValidator dlValidator)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static void |
validateDirectoryName(String directoryName) |
static void |
validateFileExtension(String fileName) |
static void |
validateFileName(String fileName) |
static void |
validateFileSize(String fileName,
byte[] bytes) |
static void |
validateFileSize(String fileName,
File file) |
static void |
validateFileSize(String fileName,
InputStream is) |
static void |
validateFileSize(String fileName,
long size) |
static void |
validateSourceFileExtension(String fileExtension,
String sourceFileName) |
static void |
validateVersionLabel(String versionLabel) |
public static String fixName(String name)
public static DLValidator getDLValidator()
public static boolean isValidName(String name)
public static final void validateDirectoryName(String directoryName) throws FolderNameException
FolderNameException
public static void validateFileExtension(String fileName) throws FileExtensionException
FileExtensionException
public static void validateFileName(String fileName) throws FileNameException
FileNameException
public static void validateFileSize(String fileName, byte[] bytes) throws FileSizeException
FileSizeException
public static void validateFileSize(String fileName, File file) throws FileSizeException
FileSizeException
public static void validateFileSize(String fileName, InputStream is) throws FileSizeException
FileSizeException
public static void validateFileSize(String fileName, long size) throws FileSizeException
FileSizeException
public static void validateSourceFileExtension(String fileExtension, String sourceFileName) throws SourceFileNameException
SourceFileNameException
public static void validateVersionLabel(String versionLabel) throws InvalidFileVersionException
InvalidFileVersionException
@Deprecated public void setDLValidator(DLValidator dlValidator)