ProGuard

proguard.obfuscate
Class Utf8Shrinker

java.lang.Object
  extended byproguard.obfuscate.Utf8Shrinker
All Implemented Interfaces:
ClassFileVisitor

public class Utf8Shrinker
extends Object
implements ClassFileVisitor

This ClassFileVisitor removes UTF-8 constant pool entries that are not marked as being used.

See Also:
Utf8UsageMarker

Constructor Summary
Utf8Shrinker(int codeLength)
          Creates a new Utf8Shrinker.
 
Method Summary
 void visitLibraryClassFile(LibraryClassFile libraryClassFile)
           
 void visitProgramClassFile(ProgramClassFile programClassFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utf8Shrinker

public Utf8Shrinker(int codeLength)
Creates a new Utf8Shrinker.

Parameters:
codeLength - an estimate of the maximum length of all the code that will be edited.
Method Detail

visitProgramClassFile

public void visitProgramClassFile(ProgramClassFile programClassFile)
Specified by:
visitProgramClassFile in interface ClassFileVisitor

visitLibraryClassFile

public void visitLibraryClassFile(LibraryClassFile libraryClassFile)
Specified by:
visitLibraryClassFile in interface ClassFileVisitor

ProGuard