1 package de.j32.pimstuff.conduit;
3 import java.io.IOException;
5 import org.xml.sax.SAXException;
7 import de.j32.avmfritz.FritzBox;
9 public class FritzAddressbookConduit
14 public FritzAddressbookConduit()
15 throws ConduitException
19 Config.get("fritzbox-password"),
20 Config.get("fritzbox-url","http://fritz.box"));
21 } catch (SAXException e) {
22 throw new ConduitException(e);
23 } catch (IOException e) {
24 throw new ConduitException(e);
29 public Exporter exporter()
30 throws ConduitException
33 return new FritzAddressbookExporter(fb_.importAddressbook());
35 catch (IOException e) {
36 throw new ConduitException(e);
41 public Importer importer()
42 throws ConduitException
45 return new FritzAddressbookImporter(fb_.exportAddressbook());
47 catch (IOException e) {
48 throw new ConduitException(e);
49 } catch (SAXException e) {
50 throw new ConduitException(e);