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();
+ }
+ }
}