/** * Instantiates a new archiv entry. * * @param uri the uri */ public ArchivEntry(URI uri) { this.uri = uri; initArchiv(); }
/** * Instantiates a new archiv entry. * * @param s the s */ public ArchivEntry(String s) { try { this.uri = new URI(s); initArchiv(); } catch (URISyntaxException e) { throw new IllegalArgumentException(s + " is not a valid URI"); } }
/** * Instantiates a new archiv entry. * * @param url the url */ public ArchivEntry(URL url) { this.uri = Converter.toURI(url); initArchiv(); }