List of utility methods to do URL Create
String | toUrlSafe(String timeZoneId) to Url Safe return timeZoneId.replace('/', '!'); |
String | toURLString(byte[] hash) to URL String StringBuilder out = new StringBuilder(hash.length * 2); for (int i = 0; i < hash.length; i++) { if (isAscii(hash[i])) { out.append((char) hash[i]); } else { out.append('%').append(HEX[(hash[i] & 0xF0) >>> 4 & 0x0F]).append(HEX[hash[i] & 0x0F]); return out.toString(); |
String | toURLString(String s) to URL String if (s == null) { return s; StringBuffer buf = new StringBuffer(); for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); switch (ch) { case '%': ... |