1 | void setInputFile(String file) {↵ | | 1 | void setMessageChoice(String choice) {↵
|
2 | setProperty(INPUT_FILE, file);↵ | | 2 | setProperty(MESSAGE_CHOICE, choice);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the path of the input file↵ | | 5 | * return the source of the message↵
|
6 | * ↵ | | 6 | * ↵
|
7 | */↵ | | 7 | */↵
|
8 | public String getInputFile() {↵ | | 8 | public String getMessageChoice() {↵
|
9 | return getPropertyAsString(INPUT_FILE);↵ | | 9 | return getPropertyAsString(MESSAGE_CHOICE);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * set the random path for the messages↵ | | 12 | * set the input file for the publisher↵
|
13 | * ↵ | | 13 | * ↵
|
14 | * @param path↵ | | 14 | * @param file↵
|
15 | */↵ | | 15 | */↵
|
16 | public void setRandomPath(String path) {↵ | | 16 | public void setInputFile(String file) {↵
|
17 | setProperty(RANDOM_PATH, path);↵ | | 17 | setProperty(INPUT_FILE, file);↵
|
18 | } | | 18 | }
|