Java Utililty Methods File Name Decode

List of utility methods to do File Name Decode

Description

The list of methods to do File Name Decode are organized into topic(s).

Method

StringfileNameDecode(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);
...