public class DLValidatorUtil
extends Object
Constructor and Description |
---|
DLValidatorUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
fixName(String name) |
static long |
getMaxAllowableSize() |
static boolean |
isValidName(String name) |
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 inputStream) |
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 long getMaxAllowableSize()
public static boolean isValidName(String name)
public static 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 inputStream) 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