From 1433e20f739086a577cfe51c862bdd50661083a5 Mon Sep 17 00:00:00 2001 From: aum Date: Thu, 24 Mar 2005 08:37:17 +0000 Subject: [PATCH] Added Destination constructor which accepts/uses a base64 string arg --- core/java/src/net/i2p/data/Destination.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/java/src/net/i2p/data/Destination.java b/core/java/src/net/i2p/data/Destination.java index 817c02e29..8b0269c58 100644 --- a/core/java/src/net/i2p/data/Destination.java +++ b/core/java/src/net/i2p/data/Destination.java @@ -35,6 +35,15 @@ public class Destination extends DataStructureImpl { __calculatedHash = null; } + /** + * alternative constructor which takes a base64 string representation + * @param s a Base64 representation of the destination, as (eg) is used in hosts.txt + */ + public Destination(String s) { + this(); + fromBase64(s); + } + public Certificate getCertificate() { return _certificate; }