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