ProGuard

proguard.io
Class ClassFileReader

java.lang.Object
  extended byproguard.io.ClassFileReader
All Implemented Interfaces:
DataEntryReader

public class ClassFileReader
extends Object
implements DataEntryReader

This DataEntryReader applies a given ClassFileVisitor to the class file definitions that it reads.

Class files are read as ProgramClassFile objects or LibraryClassFile objects, depending on the isLibrary flag.

In case of libraries, only public class files are considered, if the skipNonPublicLibraryClasses flag is set.


Constructor Summary
ClassFileReader(boolean isLibrary, boolean skipNonPublicLibraryClasses, ClassFileVisitor classFileVisitor)
          Creates a new DataEntryClassFileFilter for reading the specified ClassFile objects.
 
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

ClassFileReader

public ClassFileReader(boolean isLibrary,
                       boolean skipNonPublicLibraryClasses,
                       ClassFileVisitor classFileVisitor)
Creates a new DataEntryClassFileFilter for reading the specified ClassFile objects.

Method Detail

read

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

Specified by:
read in interface DataEntryReader
Throws:
IOException

ProGuard