org.codehaus.mojo.animal_sniffer
Class SignatureChecker

java.lang.Object
  extended by org.codehaus.mojo.animal_sniffer.ClassFileVisitor
      extended by org.codehaus.mojo.animal_sniffer.SignatureChecker

public class SignatureChecker
extends ClassFileVisitor

Checks the signature against classes in this list.

Author:
Kohsuke Kawaguchi

Constructor Summary
SignatureChecker(InputStream in, Set ignoredPackages, Logger logger)
           
 
Method Summary
 boolean isSignatureBroken()
           
static void main(String[] args)
           
protected  void process(String name, InputStream image)
           
 
Methods inherited from class org.codehaus.mojo.animal_sniffer.ClassFileVisitor
isCheckJars, process, process, processClassFile, processDirectory, processJarFile, setCheckJars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureChecker

public SignatureChecker(InputStream in,
                        Set ignoredPackages,
                        Logger logger)
                 throws IOException
Throws:
IOException
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

process

protected void process(String name,
                       InputStream image)
                throws IOException
Specified by:
process in class ClassFileVisitor
Parameters:
name - Displayable name to identify what class file we are processing
image - Class file image.
Throws:
IOException

isSignatureBroken

public boolean isSignatureBroken()


Copyright © 2008-2011 Codehaus. All Rights Reserved.