Removed debug example

This commit is contained in:
Gideon le Grange 2016-10-08 19:28:36 +02:00
parent 7f5423dcec
commit e6b714b23a
1 changed files with 0 additions and 30 deletions

View File

@ -1,30 +0,0 @@
package examples;
import java.util.List;
import java.util.Map;
import me.legrange.mikrotik.MikrotikApiException;
/**
* Example 7: Dump your complete config
*
* @author gideon
*/
public class DownloadConfig extends Example {
public static void main(String... args) throws Exception {
DownloadConfig ex = new DownloadConfig();
ex.connect();
ex.test();
ex.disconnect();
}
private void test() throws MikrotikApiException, InterruptedException {
con.execute("/export file=conf");
List<Map<String, String>> res = con.execute("/file/print detail where name=conf.rsc");
con.execute("/file/remove .id=conf.rsc");
String text = res.get(0).get("contents");
for (String line : text.split("\r")) {
System.out.println(line);
}
}
}