List of utility methods to do File Name Decode
String | fileNameDecode(String str) Decode a string from the encoding used by #fileNameEncode(String) . StringBuilder sb = new StringBuilder(); int encCharStart, encCharEnd; while ((encCharStart = str.indexOf('[')) != -1 && (encCharEnd = str.indexOf(']')) != -1) { sb.append(str.substring(0, encCharStart)); sb.append((char) Integer.parseInt(str.substring(encCharStart + 1, encCharEnd), 16)); str = encCharEnd == str.length() - 1 ? "" : str.substring(encCharEnd + 1); sb.append(str); ... |