From e6b714b23acf2f6683c9cbd3a5780a9d2a3134d7 Mon Sep 17 00:00:00 2001 From: Gideon le Grange Date: Sat, 8 Oct 2016 19:28:36 +0200 Subject: [PATCH] Removed debug example --- src/main/java/examples/Issue4.java | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/main/java/examples/Issue4.java diff --git a/src/main/java/examples/Issue4.java b/src/main/java/examples/Issue4.java deleted file mode 100644 index b041bb1..0000000 --- a/src/main/java/examples/Issue4.java +++ /dev/null @@ -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> 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); - } - } -}