// happen
// This is a critical exception, so we better throw a
// ValidationException
// no need to continue
logger.error(e);
throw new ValidationException("Could not open inputstream for "
+ i);
}
imageSize = (int) i.length();
} else {
// it's .. uhm, something else. A football ? A hot blonde's address
// ? Fourty Two ? We'll never know ..
throw new ValidationException(
"Invalid object. Expect either a String or File object. Object is "
+ image.getClass().getName());
}
if (!ii.check()) {
setMessageKey(getMessageKey() + ".invalid");