类 DictionaryNameFactory

  • 所有已实现的接口:
    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.
    • 构造器详细资料

      • DictionaryNameFactory

        public DictionaryNameFactory​(java.net.URL url,
                                     NameFactory nameFactory)
                              throws java.io.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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.IOException
        Creates a new DictionaryNameFactory.
        参数:
        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 new DictionaryNameFactory.
        参数:
        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.
    • 方法详细资料

      • main

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