Solved

How to search functions that have return type = InputStream?

Posted on 2010-11-26
2
268 Views
Last Modified: 2012-05-10

How to search functions that have return type = InputStream?
0
Comment
Question by:Hoboly
  • 2
2 Comments
 
LVL 26

Assisted Solution

by:ksivananth
ksivananth earned 250 total points
ID: 34216085
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
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 34216112
for e.g.,

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now