X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=src%2Fde%2Fj32%2Fpimstuff%2FMain.java;h=733b6f39efabfc34353f4d2fdacce49a7aa26ce6;hb=e4126a1787b7045a53f6074e9ef15681c9f5fde4;hp=089eee9185c812a5acd2b2b18f47705ce7c900c7;hpb=276d9a69fa796728169c2992921a1e4bd875f549;p=jpim.git diff --git a/src/de/j32/pimstuff/Main.java b/src/de/j32/pimstuff/Main.java index 089eee9..733b6f3 100644 --- a/src/de/j32/pimstuff/Main.java +++ b/src/de/j32/pimstuff/Main.java @@ -10,41 +10,42 @@ import de.j32.pimstuff.conduit.Registry; import de.j32.pimstuff.data.Addressbook; import de.j32.util.Util; -public class Main { +public class Main +{ - public static void main(String[] args) - { - try { - Addressbook ab = new Addressbook(); - Conduit conduit = Registry.get("fritzbox"); + public static void main(String[] args) + { + try { + Addressbook ab = new Addressbook(); + Conduit conduit = Registry.get("fritzbox"); - Importer i = null; - try { - i = conduit.importer(); - i.sendTo(ab); - i.close(); - i = null; - } - finally { - Util.nothrowClose(i); - } - - Exporter e = null; - try { - e = conduit.exporter(); - ab.sendTo(e); - e.close(); - e = null; - } - finally { - Util.nothrowClose(e); - } - } - catch (ConduitException e) { - e.printStackTrace(); - } - catch (IOException e) { - e.printStackTrace(); - } - } + Importer i = null; + try { + i = conduit.importer(); + i.sendTo(ab); + i.close(); + i = null; + } + finally { + Util.nothrowClose(i); + } + + Exporter e = null; + try { + e = conduit.exporter(); + ab.sendTo(e); + e.close(); + e = null; + } + finally { + Util.nothrowClose(e); + } + } + catch (ConduitException e) { + e.printStackTrace(); + } + catch (IOException e) { + e.printStackTrace(); + } + } }