Java URI from toURIs(File... files)

Here you can find the source of toURIs(File... files)

Description

Convert files to URI in correct way.

License

Open Source License

Declaration


public static URI[] toURIs(File... files) 

Method Source Code

//package com.java2s;

import java.io.File;

import java.net.URI;

public class Main {
    /**//from w w  w. j a v  a 2 s  .c  o m
     * Convert files to URI in correct way.
     */

    public static URI[] toURIs(File... files) {
        URI[] uris = new URI[files.length];
        for (int i = 0; i < uris.length; i++) {
            uris[i] = files[i].toURI();
        }
        return uris;
    }
}

Related

  1. toUri(String uri)
  2. toURI(URI parent, String child)
  3. toURIArray(String[] array)
  4. toURIList(Collection stringList)
  5. toURIObject(String uri)
  6. toURIs(Iterable files)
  7. toURIs(String[] filePaths)
  8. toUriString(File file)
  9. toURIString(File file)