Java URI Create createUri(String base)

Here you can find the source of createUri(String base)

Description

create Uri

License

Apache License

Declaration

private static URI createUri(String base) 

Method Source Code


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

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

public class Main {
    private static URI createUri(String base) {
        try {/* w ww .  j a  v a 2  s  .c  o m*/
            return new URI(base);
        } catch (URISyntaxException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. createUri(final String path, final String query)
  2. createURI(final String scheme, final String host, final int port)
  3. createURI(final String scheme, final String host, int port, final String path, final String query, final String fragment)
  4. createURI(final String scheme, final String[] pathAsArray)
  5. createURI(List proxyPorts)
  6. createURI(String extension)
  7. createURI(String filename)
  8. createURI(String hostname, int port)
  9. createUri(String name, Kind kind)