/** * Parses the given argument {@code uri} and creates an appropriate URI * instance. * * @param uri * the string which has to be parsed to create the URI instance. * @return the created instance representing the given URI. */ public static URI create(String uri) { URI result = null; try { result = new URI(uri); } catch (URISyntaxException e) { throw new java.lang.IllegalArgumentException(e.getMessage()); } return result; }
public void FileConstructorTest1() { URI uri = new URI("file://C:/1.txt"); // TODO: Initialize to an appropriate value try { File target = new File(uri); Assert.Fail("Wenn wir den Konstruktor implementieren, dann auch die Testmethode"); } catch (java.lang.UnsupportedOperationException) { } }
public URL(String url) { this.delegateInstance = new URI(url); }