public class FilenameUtil extends Object
| Constructor and Description |
|---|
FilenameUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String | decodeFilenameRFC5987(String name)Decode an RFC 5987 encoded filename back to a string. |
static String | encodeFilenameRFC5987(String name)Encode the UTF-8 suitable for inclusion in a header
as a RFC 5987/6266 filename* value, and for use as a cross-platform filename. |
static String | sanitizeFilename(String name)Convert the UTF-8 to ASCII suitable for inclusion in a header
and for use as a cross-platform filename. |
public static String decodeFilenameRFC5987(String name)
name - the RFC 5987 encoded filenamepublic static String encodeFilenameRFC5987(String name)