proguard.io
Class DataEntryObfuscator

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

public class DataEntryObfuscator
extends java.lang.Object
implements DataEntryReader

This DataEntryReader delegates to another DataEntryReader, renaming the data entries based on the renamed classes in the given ClassPool.


Constructor Summary
DataEntryObfuscator(ClassPool classPool, java.util.Map packagePrefixMap, DataEntryReader dataEntryReader)
          Creates a new DataEntryObfuscator.
 
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

DataEntryObfuscator

public DataEntryObfuscator(ClassPool classPool,
                           java.util.Map packagePrefixMap,
                           DataEntryReader dataEntryReader)
Creates a new DataEntryObfuscator.

Parameters:
classPool - the class pool that maps from old names to new names.
packagePrefixMap - the map from old package prefixes to new package prefixes.
dataEntryReader - the DataEntryReader to which calls will be delegated.
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