Java URI Create getUri(File file)

Here you can find the source of getUri(File file)

Description

get Uri

License

Mozilla Public License

Declaration

public static String getUri(File file) 

Method Source Code


//package com.java2s;
/*  The contents of this file are subject to the Mozilla Public License     */

import java.io.File;

import java.net.URI;

public class Main {
    public static String getUri(File file) {
        URI uri = file.toURI();/*from w w w  .  ja v  a2s  . com*/
        return uri.toASCIIString();
    }
}

Related

  1. createURI(String uri)
  2. createURIWithFull(final String scheme, final String userInfo, final String host, final int port, final String path, final String query, final String fragment)
  3. getUri()
  4. getUri(File file)
  5. getURI(File file)
  6. getURI(File file)
  7. getURI(final String address)
  8. getURI(final String base, final String href)
  9. getURI(final String uri)