if (val == null)
return null;
String[] tokens = val.split(ConsText.DilimDimension.v);
if (tokens.length != 2)
throw new CodingException("Invalid String representation for dimension.");
try {
int width = Integer.parseInt(tokens[0]);
int height = Integer.parseInt(tokens[1]);
return new Dimension(width, height);
}
catch (NumberFormatException ex) {
throw new CodingException(ex.getMessage(), ex);
}
}