Package 

Class ZipEncodingHelper


  • 
    public abstract class ZipEncodingHelper
    
                        

    Static helper functions for robustly encoding file names in zip files.

    • Method Summary

      Modifier and Type Method Description
      static ZipEncoding getZipEncoding(String name) Instantiates a zip encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.