Top Description Methods
org.apache.commons.compress.archivers.zip

public Interface CharsetAccessor

Known Direct Implementers
org.apache.commons.compress.archivers.zip.NioZipEncoding
Imports
java.nio.charset.Charset

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.

Since
1.15

Method Summary

Modifier and TypeMethod and Description
public Charset

Returns:

the character set associated with this object
getCharset
()

Provides access to the character set associated with an object.

Method Detail

getCharsetback to summary
public Charset getCharset()

Provides access to the character set associated with an object.

This allowsNIOoriented 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.

Returns:Charset

the character set associated with this object