Here you can find the source of uriToString(URI[] uris)
Parameter | Description |
---|---|
uris | a parameter |
public static String uriToString(URI[] uris)
//package com.java2s; import java.net.URI; public class Main { /**//w w w. ja va 2 s .c om * * @param uris */ public static String uriToString(URI[] uris) { if (uris == null) { return null; } StringBuffer ret = new StringBuffer(uris[0].toString()); for (int i = 1; i < uris.length; i++) { ret.append(","); ret.append(uris[i].toString()); } return ret.toString(); } public static String toString(String[] content, String sign) { if (null == content) { return null; } sign = null == sign ? "," : sign; StringBuilder strBuilder = new StringBuilder(); for (int i = 0; i < content.length; i++) { strBuilder.append(content[i]); if (i < content.length - 1) { strBuilder.append(sign); } } return strBuilder.toString(); } }