wt.util
Class PropertiesConsumer
java.lang.Object
wt.util.Consumer
wt.util.FileConsumer
wt.util.PropertiesConsumer
- All Implemented Interfaces:
- Iterator
- public final class PropertiesConsumer
- extends FileConsumer
Creates an iteration over a list of properties files, without
buffering all the properties files first. The files are processed
just as properties files are, with the one exception that duplicate keys
ARE returned. The expectation is that the caller will
have its own handling of duplicate keys.
Supported API: false
Extendable: false
Nested Class Summary |
protected static class |
PropertiesConsumer.PropertiesAdapter
Adapter class that lets a properties file be parsed by the Properties code,
without being stored in a Properties object. |
PropertiesConsumer
public PropertiesConsumer(String[] files,
int max_buffer_size)
- Parameters:
files
- An array of files to be included in the iterator
PropertiesConsumer
public PropertiesConsumer(String files)
- Parameters:
files
- A comma-separated list of files.
PropertiesConsumer
public PropertiesConsumer(String files,
String separator)
- Parameters:
files
- A list of files delineated by the separator parameterseparator
- The separator for the files parameter
PropertiesConsumer
public PropertiesConsumer(String files,
String separator,
int max_buffer_size)
- Parameters:
files
- A list of files delineated by the separator parameterseparator
- The separator for the files parameter
PropertiesConsumer
public PropertiesConsumer(String[] files)
- Parameters:
files
- An array of files to be included in the iterator
createProducer
protected final Consumer.Producer createProducer(String[] files)
- Override createProducer() to create a properties producer.
- Overrides:
createProducer
in class FileConsumer
- Parameters:
files
- The list of files to be loaded.