rpmquery through Java?

Is there a libray that I can use to simulate the rpmquery command? I want the version and author number of an rpm ... I searched on google, but it really gave me nothing ...
[180 byte] By [JochusHa] at [2007-10-3 3:33:16]
# 1
You could use Runtime.exec()?
mlka at 2007-7-14 21:27:37 > top of Java-index,Java Essentials,Java Programming...
# 2
I could use that indeed ... but a library would be better I think ...
JochusHa at 2007-7-14 21:27:37 > top of Java-index,Java Essentials,Java Programming...