* @see WireParser
*/
public class ShortBinding extends BasicTypeBinding {
protected AbstractDescriptor createDescriptor(String value) {
ShortDescriptor shortDescriptor = new ShortDescriptor();
Short shortValue;
try {
shortValue = new Short(value);
} catch (NumberFormatException e) {
throw new NumberFormatException("'"+value+"' cannot be parsed to a short");
}
shortDescriptor.setValue(shortValue);
return shortDescriptor;
}