I think I did not explain my problem well.
I need some way so that I can read/update the listener.ora programmatically from my appliucation. So you people know about some parser utility which can do it.