|
|
|
@ -20,6 +20,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
@@ -20,6 +20,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
|
|
|
|
|
public class SourceListener { |
|
|
|
|
public Options opt; |
|
|
|
|
public String optionsPath = "options-office.json"; |
|
|
|
|
public SourceListener(){ |
|
|
|
|
try { |
|
|
|
|
opt = readOptions(); |
|
|
|
@ -44,7 +45,7 @@ public class SourceListener {
@@ -44,7 +45,7 @@ public class SourceListener {
|
|
|
|
|
public Options readOptions() throws StreamReadException, DatabindException, IOException{ |
|
|
|
|
Options opt; |
|
|
|
|
ObjectMapper mapper = new ObjectMapper(); |
|
|
|
|
opt = mapper.readValue(new File("options-office.json"), Options.class); |
|
|
|
|
opt = mapper.readValue(new File(optionsPath), Options.class); |
|
|
|
|
return opt; |
|
|
|
|
} |
|
|
|
|
public Options getOpt() { |
|
|
|
|