summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/cli/objects/BlockReaderState.java
blob: c528e6aa2ab052ffbe1606a21fbb9e8e7cbfcbbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package bjc.utils.cli.objects;

import bjc.utils.ioutils.blocks.BlockReader;

import java.io.Reader;
import java.util.Map;

/**
 * The state of the block reader.
 *
 * @author Ben Culkin
 */
public class BlockReaderState {
	/**
	 * All of the configured block readers.
	 */
	public final Map<String, BlockReader> readers;
	/**
	 * All of the configured I/O sources.
	 */
	public final Map<String, Reader> sources;

	/**
	 * Create a new set of state for the block reader.
	 *
	 * @param readers
	 *        The set of configured block readers.
	 *
	 * @param sources
	 *        The set of configured I/O sources.
	 */
	public BlockReaderState(Map<String, BlockReader> readers, Map<String, Reader> sources) {
		this.readers = readers;
		this.sources = sources;
	}
}