OdfUtils.parseLength has some logic to help out with units (I realise this code is quite straightforward though... but figure better re-use is usually a good thing...?)