Here you can find the source of encodeUri(URI uri)
Parameter | Description |
---|---|
uri | the target URI |
public static String encodeUri(URI uri)
//package com.java2s; //License from project: Apache License import java.net.URI; public class Main { /**// w w w . j a v a2 s . c o m * Encodes a URI into a flat character string. * @param uri the target URI * @return the encoded string * @since 0.2.7 */ public static String encodeUri(URI uri) { if (uri == null) { return ""; //$NON-NLS-1$ } return uri.toASCIIString(); } }