| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ZipEncoding | ZIP_ENCODING_UTF_8
UTF-8. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ZipEncoding | Returns: A ZIP encoding for the given encoding name.The charset of the ZIP encoding. Specify charset)null for the platform's default encoding.Instantiates a ZIP encoding. |
| public static ZipEncoding | Returns: A ZIP encoding for the given encoding name.The name of the ZIP encoding. Specify name)null for the platform's default encoding.Instantiates a ZIP encoding. |
| pack-priv static ByteBuffer | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| private static boolean |
| ZIP_ENCODING_UTF_8 | back to summary |
|---|---|
| pack-priv static final ZipEncoding ZIP_ENCODING_UTF_8 UTF-8. | |
| ZipEncodingHelper | back to summary |
|---|---|
| public ZipEncodingHelper() | |
| getZipEncoding | back to summary |
|---|---|
| public static ZipEncoding getZipEncoding(final Charset charset) 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 and unmappable characters with '?'. This matches existing behavior from the older fallback encoder. If the requested character set cannot be found, the platform default will be used instead.
| |
| getZipEncoding | back to summary |
|---|---|
| public static ZipEncoding getZipEncoding(final 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 and unmappable characters with '?'. This matches existing behavior from the older fallback encoder. If the requested character set cannot be found, the platform default will be used instead.
| |
| growBufferBy | back to summary |
|---|---|
| pack-priv static ByteBuffer growBufferBy(final ByteBuffer buffer, final int increment) | |
| isUTF8 | back to summary |
|---|---|
| pack-priv static boolean isUTF8(final Charset charset) Tests whether a given encoding is UTF-8. If the given name is null, then check the platform's default encoding.
| |
| isUTF8 | back to summary |
|---|---|
| pack-priv static boolean isUTF8(final String charsetName) Tests whether a given encoding is UTF-8. If the given name is null, then check the platform's default encoding.
| |
| isUTF8Alias | back to summary |
|---|---|
| private static boolean isUTF8Alias(final String actual) | |