Java URI from toURIList(Collection stringList)

Here you can find the source of toURIList(Collection stringList)

Description

to URI List

License

Open Source License

Declaration

public static List<URI> toURIList(Collection<String> stringList) 

Method Source Code


//package com.java2s;
import java.net.URI;

import java.util.*;

public class Main {
    public static List<URI> toURIList(Collection<String> stringList) {
        List<URI> uriList = null;
        if (stringList != null && !stringList.isEmpty()) {
            uriList = new ArrayList<>();
            for (String uriStr : stringList) {
                uriList.add(URI.create(uriStr));
            }/*from   w ww.  jav a  2  s . co  m*/
        }
        return uriList;
    }
}

Related

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