org.codehaus.mojo.animal_sniffer
Class SignatureBuilder

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

public class SignatureBuilder
extends ClassFileVisitor

Builds up a signature list from the given classes.

Author:
Kohsuke Kawaguchi

Constructor Summary
SignatureBuilder(InputStream[] in, OutputStream out, Logger logger)
           
SignatureBuilder(OutputStream out, Logger logger)
           
 
Method Summary
 void addExclude(String className)
           
 void addInclude(String className)
           
 void close()
           
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

SignatureBuilder

public SignatureBuilder(OutputStream out,
                        Logger logger)
                 throws IOException
Throws:
IOException

SignatureBuilder

public SignatureBuilder(InputStream[] in,
                        OutputStream out,
                        Logger logger)
                 throws IOException
Throws:
IOException
Method Detail

main

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

addInclude

public void addInclude(String className)

addExclude

public void addExclude(String className)

close

public void close()
           throws IOException
Throws:
IOException

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


Copyright © 2008-2012 Codehaus. All Rights Reserved.