예제 #1
0
파일: URI.cs 프로젝트: sailesh341/JavApi
 /**
  * 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;
 }
예제 #2
0
 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)
     {
     }
 }
예제 #3
0
파일: java.net.URL.cs 프로젝트: gadfly/nofs
 public URL(String url)
 {
     this.delegateInstance = new URI(url);
 }