@ProviderType
public interface DLValidator
Modifier and Type | Method and Description |
---|---|
String |
fixName(String name) |
boolean |
isValidName(String name) |
void |
validateDirectoryName(String directoryName) |
void |
validateFileExtension(String fileName) |
void |
validateFileName(String fileName) |
void |
validateFileSize(String fileName,
byte[] bytes) |
void |
validateFileSize(String fileName,
File file) |
void |
validateFileSize(String fileName,
InputStream is) |
void |
validateFileSize(String fileName,
long size) |
void |
validateSourceFileExtension(String fileExtension,
String sourceFileName) |
void |
validateVersionLabel(String versionLabel) |
String fixName(String name)
boolean isValidName(String name)
void validateDirectoryName(String directoryName) throws FolderNameException
FolderNameException
void validateFileExtension(String fileName) throws FileExtensionException
FileExtensionException
void validateFileName(String fileName) throws FileNameException
FileNameException
void validateFileSize(String fileName, byte[] bytes) throws FileSizeException
FileSizeException
void validateFileSize(String fileName, File file) throws FileSizeException
FileSizeException
void validateFileSize(String fileName, InputStream is) throws FileSizeException
FileSizeException
void validateFileSize(String fileName, long size) throws FileSizeException
FileSizeException
void validateSourceFileExtension(String fileExtension, String sourceFileName) throws SourceFileNameException
SourceFileNameException
void validateVersionLabel(String versionLabel) throws InvalidFileVersionException
InvalidFileVersionException