Package 

Interface CharsetAccessor


  • 
    public interface CharsetAccessor
    
                        

    An interface added to allow access to the character set associated with an NioZipEncoding, without requiring a new method to be added to ZipEncoding.

    This avoids introducing a potentially breaking change, or making NioZipEncoding a public class.

    • Method Summary

      Modifier and Type Method Description
      abstract Charset getCharset() Provides access to the character set associated with an object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCharset

         abstract Charset getCharset()

        Provides access to the character set associated with an object.

        This allows nio oriented code to use more natural character encoding/decoding methods,whilst allowing existing code to continue to rely on special-case error handling for UTF-8.