return (short) (number.doubleValue() * 100);
} else {
return number.shortValue();
}
} catch (ParseException e) {
throw new DataDecodeException("Failed to decode Short value '" + data + "' using NumberFormat instance " + format + ".", e);
}
} else {
try {
return Short.parseShort(data.trim());
} catch(NumberFormatException e) {
throw new DataDecodeException("Failed to decode Short value '" + data + "'.", e);
}
}
}