Package media.validation
Class ImageValidator
- java.lang.Object
-
- media.validation.ImageValidator
-
- All Implemented Interfaces:
ConstraintValidator<Image,InputStream>
public class ImageValidator extends Object implements ConstraintValidator<Image,InputStream>
-
-
Constructor Summary
Constructors Constructor Description ImageValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(Image constraintAnnotation)
boolean
isValid(InputStream value, ConstraintValidatorContext context)
-
-
-
Constructor Detail
-
ImageValidator
public ImageValidator()
-
-
Method Detail
-
initialize
public void initialize(Image constraintAnnotation)
- Specified by:
initialize
in interfaceConstraintValidator<Image,InputStream>
-
isValid
public boolean isValid(InputStream value, ConstraintValidatorContext context)
- Specified by:
isValid
in interfaceConstraintValidator<Image,InputStream>
-
-