Java URI from toURI(String sUri)

Here you can find the source of toURI(String sUri)

Description

to URI

License

Apache License

Declaration

public static URI toURI(String sUri) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.URI;
import java.net.URISyntaxException;

public class Main {
    public static URI toURI(String sUri) {
        try {//from   ww  w . j ava  2s.  c  o  m
            return new URI(sUri);
        } catch (URISyntaxException e) {
            return null;
        }
    }
}

Related

  1. toUri(String path)
  2. toURI(String path)
  3. toURI(String s)
  4. toURI(String str)
  5. toURI(String str)
  6. toURI(String uri)
  7. toURI(String uri)
  8. toUri(String uri)
  9. toURI(URI parent, String child)