add new method on TikaUtil

refactor TikaUtil and add a new method