Java URI Create uri(String uri)

Here you can find the source of uri(String uri)

Description

uri

License

Open Source License

Declaration

public static URI uri(String uri) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.net.URI;

public class Main {
    public static URI uri(String uri) {
        try {/*from w w w  .  j av a2s .c om*/
            return new URI(uri);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
}

Related

  1. stringToUri(String fileString)
  2. stringToURI(String[] str)
  3. uri(String host, String prefix, String path)
  4. uri(String path)
  5. uri(String str)
  6. uri(String uri)
  7. uri(String uriStr)
  8. uri(String value)
  9. uri(String value)