Is it possible to export a proc as text via JDBC ?

I don't see any such functionality that DatabaseMetaData provides...also can't find anything on the net either.

Has anyone come across this problem before?


eg the text would be "CREATE PROC TEST ...."