类 DictionaryNameFactory
- java.lang.Object
-
- proguard.obfuscate.DictionaryNameFactory
-
- 所有已实现的接口:
NameFactory
public class DictionaryNameFactory extends java.lang.Object implements NameFactory
ThisNameFactorygenerates names that are read from a specified input file. Comments (everything starting with '#' on a single line) are ignored.
-
-
构造器概要
构造器 构造器 说明 DictionaryNameFactory(java.io.File file, boolean validJavaIdentifiers, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(java.io.File file, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(java.io.Reader reader, boolean validJavaIdentifiers, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(java.io.Reader reader, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(java.net.URL url, boolean validJavaIdentifiers, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(java.net.URL url, NameFactory nameFactory)Creates a newDictionaryNameFactory.DictionaryNameFactory(DictionaryNameFactory dictionaryNameFactory, NameFactory nameFactory)Creates a newDictionaryNameFactory.
-
-
-
构造器详细资料
-
DictionaryNameFactory
public DictionaryNameFactory(java.net.URL url, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
url- The URL 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.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(java.net.URL url, boolean validJavaIdentifiers, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
url- The URL from which the names can be read.validJavaIdentifiers- Specifies whether the produced names should be valid Java identifiers.nameFactory- The name factory from which names will be retrieved if the list of read names has been exhausted.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(java.io.File file, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
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.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(java.io.File file, boolean validJavaIdentifiers, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
file- The file from which the names can be read.validJavaIdentifiers- Specifies whether the produced names should be valid Java identifiers.nameFactory- The name factory from which names will be retrieved if the list of read names has been exhausted.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(java.io.Reader reader, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
reader- The reader from which the names can be read. The reader is closed at the end.nameFactory- The name factory from which names will be retrieved if the list of read names has been exhausted.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(java.io.Reader reader, boolean validJavaIdentifiers, NameFactory nameFactory) throws java.io.IOExceptionCreates a newDictionaryNameFactory.- 参数:
reader- The reader from which the names can be read. The reader is closed at the end.validJavaIdentifiers- Specifies whether the produced names should be valid Java identifiers.nameFactory- The name factory from which names will be retrieved if the list of read names has been exhausted.- 抛出:
java.io.IOException
-
DictionaryNameFactory
public DictionaryNameFactory(DictionaryNameFactory dictionaryNameFactory, NameFactory nameFactory)
Creates a newDictionaryNameFactory.- 参数:
dictionaryNameFactory- The dictionary name factory whose dictionary will be used.nameFactory- The name factory from which names will be retrieved if the list of read names has been exhausted.
-
-
方法详细资料
-
reset
public void reset()
- 指定者:
reset在接口中NameFactory
-
nextName
public java.lang.String nextName()
- 指定者:
nextName在接口中NameFactory
-
main
public static void main(java.lang.String[] args)
-
-