proguard.io
Class ClassFilter

java.lang.Object
  extended by proguard.io.ClassFilter
All Implemented Interfaces:
DataEntryReader

public class ClassFilter
extends java.lang.Object
implements DataEntryReader

This DataEntryReader delegates to one of two other DataEntryReader instances, depending on the extension of the data entry.


Constructor Summary
ClassFilter(DataEntryReader classReader)
          Creates a new ClassFilter that delegates reading classes to the given reader.
ClassFilter(DataEntryReader classReader, DataEntryReader dataEntryReader)
          Creates a new ClassFilter that delegates to either of the two given readers.
 
Method Summary
 void read(DataEntry dataEntry)
          Reads the given data entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFilter

public ClassFilter(DataEntryReader classReader)
Creates a new ClassFilter that delegates reading classes to the given reader.


ClassFilter

public ClassFilter(DataEntryReader classReader,
                   DataEntryReader dataEntryReader)
Creates a new ClassFilter that delegates to either of the two given readers.

Method Detail

read

public void read(DataEntry dataEntry)
          throws java.io.IOException
Description copied from interface: DataEntryReader
Reads the given data entry.

Specified by:
read in interface DataEntryReader
Throws:
java.io.IOException