How to search functions that have return type = InputStream?


How to search functions that have return type = InputStream?
HobolyAsked:
Who is Participating?
 
ksivananthConnect With a Mentor Commented:
for e.g.,

Class<?> cls = method.getReturnType() ;
if( cls.isAssignableFrom( InputStream.class ) )
0
 
ksivananthConnect With a Mentor Commented:
follow this example to get list of all declared methods, http://java.sun.com/developer/technicalArticles/ALT/Reflection/

then travers through the methods array and check the return type of eache methis is a type of yours,

method.getReturnType() ;
0
All Courses

From novice to tech pro — start learning today.