proguard.classfile.util
Class WarningPrinter

java.lang.Object
  extended by proguard.classfile.util.WarningPrinter

public class WarningPrinter
extends java.lang.Object

This class prints out and counts warnings.


Constructor Summary
WarningPrinter()
          Creates a new WarningPrinter that prints to the System.err print stream.
WarningPrinter(java.io.PrintStream printStream)
          Creates a new WarningPrinter that prints to the given print stream.
 
Method Summary
 int getWarningCount()
          Returns the number of warnings printed so far.
 void print(java.lang.String warning)
          Prints out the given warning and increments the warning count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningPrinter

public WarningPrinter()
Creates a new WarningPrinter that prints to the System.err print stream.


WarningPrinter

public WarningPrinter(java.io.PrintStream printStream)
Creates a new WarningPrinter that prints to the given print stream.

Method Detail

print

public void print(java.lang.String warning)
Prints out the given warning and increments the warning count.


getWarningCount

public int getWarningCount()
Returns the number of warnings printed so far.