1 21 package proguard.io; 22 23 import proguard.classfile.*; 24 import proguard.util.*; 25 26 import java.io.*; 27 28 29 35 public class ClassFilter implements DataEntryReader 36 { 37 private FilteredDataEntryReader filteredDataEntryReader; 38 39 40 44 public ClassFilter(DataEntryReader classReader) 45 { 46 this(classReader, null); 47 } 48 49 50 54 public ClassFilter(DataEntryReader classReader, 55 DataEntryReader dataEntryReader) 56 { 57 filteredDataEntryReader = 58 new FilteredDataEntryReader( 59 new DataEntryNameFilter( 60 new ExtensionMatcher(ClassConstants.CLASS_FILE_EXTENSION)), 61 classReader, 62 dataEntryReader); 63 } 64 65 66 68 public void read(DataEntry dataEntry) throws IOException 69 { 70 filteredDataEntryReader.read(dataEntry); 71 } 72 } 73 | Popular Tags |