* input data
* @return number of class files found
* @throws IOException
*/
public int analyzeAll(final InputStream input) throws IOException {
final ContentTypeDetector detector = new ContentTypeDetector(input);
switch (detector.getType()) {
case ContentTypeDetector.CLASSFILE:
analyzeClass(detector.getInputStream());
return 1;
case ContentTypeDetector.ZIPFILE:
return analyzeArchive(detector.getInputStream());
}
return 0;
}