-
public abstract class ZipEncodingHelperStatic helper functions for robustly encoding file names in zip files.
-
-
Method Summary
Modifier and Type Method Description static ZipEncodinggetZipEncoding(String name)Instantiates a zip encoding. -
-
Method Detail
-
getZipEncoding
static ZipEncoding getZipEncoding(String name)
Instantiates a zip encoding. An NIO based character set encoder/decoder will be returned.As a special case, if the character set is UTF-8, the nio encoder will be configured replace malformed andunmappable characters with '?'. This matches existing behavior from the older fallback encoder.
If the requested character set cannot be found, the platform default willbe used instead.
- Parameters:
name- The name of the zip encoding.
-
-
-
-