From fe6b9c9156fe9dcdf91da2239a464f34d79e7a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Mon, 29 Mar 2010 12:40:02 +0000 Subject: [PATCH] - added the parse( URI ) call --- .../exmo/align/parser/AlignmentParser.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/fr/inrialpes/exmo/align/parser/AlignmentParser.java b/src/fr/inrialpes/exmo/align/parser/AlignmentParser.java index 67a47db4..af8ef02a 100644 --- a/src/fr/inrialpes/exmo/align/parser/AlignmentParser.java +++ b/src/fr/inrialpes/exmo/align/parser/AlignmentParser.java @@ -193,7 +193,8 @@ public class AlignmentParser { /** * Parses a URI expressed as a String - * @param uri the URI + * @param uri the URI as a String + * This is only here for compatibility purposes */ public Alignment parse( String uri ) throws AlignmentException { this.uri = uri; // should be obsoloted @@ -205,6 +206,16 @@ public class AlignmentParser { return alignment; } + /** + * Parses a URI + * @param uri the URI + */ + public Alignment parse( URI uri ) throws AlignmentException { + this.uri = uri.toString(); + callParser( uri ); + return alignment; + } + /** * Parses an inputStream * @param s the Stream to parse -- GitLab