Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

How to search functions that have return type = InputStream?


How to search functions that have return type = InputStream?
0
Hoboly
Asked:
Hoboly
  • 2
2 Solutions
 
ksivananthCommented:
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
 
ksivananthCommented:
for e.g.,

Class<?> cls = method.getReturnType() ;
if( cls.isAssignableFrom( InputStream.class ) )
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now