Here you can find the source of toURIs(File... files)
public static URI[] toURIs(File... files)
//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; } }