TNSNAMES.ORA

List TNS entries from TNSNAMES.ORA using java

I was searching for the java program which should List TNS entries from TNSNAMES.ORA using java. I Google this but not found any satisfactory answer. So I have written the below code to list the tns entries from TNSNAMES.ORA file.