Java URI Create stringToUri(String fileString)

Here you can find the source of stringToUri(String fileString)

Description

string To Uri

License

Open Source License

Declaration

public static URI stringToUri(String fileString) 

Method Source Code


//package com.java2s;

import java.io.File;

import java.net.URI;

public class Main {
    public static URI stringToUri(String fileString) {
        return new File(fileString).toURI();
    }/*ww  w . jav  a2 s.co  m*/
}

Related

  1. getURIs(final Object[] objs)
  2. getUriScheme(String address)
  3. getURIsPrettyPrint(final Collection uris)
  4. getURIStream(Object obj)
  5. getURIWithAuthority(URI uri, String authority)
  6. stringToURI(String[] str)
  7. uri(String host, String prefix, String path)
  8. uri(String path)
  9. uri(String str)