Java URI Create createUri(String name, Kind kind)

Here you can find the source of createUri(String name, Kind kind)

Description

create Uri

License

Open Source License

Declaration

private static URI createUri(String name, Kind kind) throws IOException 

Method Source Code


//package com.java2s;

import java.io.IOException;

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

import javax.tools.JavaFileObject.Kind;

public class Main {
    private static URI createUri(String name, Kind kind) throws IOException {
        try {// w w w .j av  a 2s .c om
            return new URI("mxcache:///" + name.replace('.', '/') + kind.extension);
        } catch (URISyntaxException e) {
            throw new IOException(e);
        }
    }
}

Related

  1. createURI(List proxyPorts)
  2. createUri(String base)
  3. createURI(String extension)
  4. createURI(String filename)
  5. createURI(String hostname, int port)
  6. createURI(String path)
  7. createURI(String path)
  8. createURI(String scheme, String host, String path)
  9. createURI(String spec)