proguard.obfuscate
Class DictionaryNameFactory

java.lang.Object
  extended by proguard.obfuscate.DictionaryNameFactory
All Implemented Interfaces:
NameFactory

public class DictionaryNameFactory
extends java.lang.Object
implements NameFactory

This NameFactory generates names that are read from a specified input file. Comments (everything starting with '#' on a single line) are ignored.


Constructor Summary
DictionaryNameFactory(java.io.File file, NameFactory nameFactory)
          Creates a new DictionaryNameFactory.
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.String nextName()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryNameFactory

public DictionaryNameFactory(java.io.File file,
                             NameFactory nameFactory)
                      throws java.io.IOException
Creates a new DictionaryNameFactory.

Parameters:
file - the file from which the names can be read.
nameFactory - the name factory from which names will be retrieved if the list of read names has been exhausted.
Throws:
java.io.IOException
Method Detail

reset

public void reset()
Specified by:
reset in interface NameFactory

nextName

public java.lang.String nextName()
Specified by:
nextName in interface NameFactory

main

public static void main(java.lang.String[] args)