public abstract class ZipEncodingHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
UTF8
name of the encoding UTF-8
|
(package private) static ZipEncoding |
UTF8_ZIP_ENCODING
the encoding UTF-8
|
Constructor and Description |
---|
ZipEncodingHelper() |
Modifier and Type | Method and Description |
---|---|
static ZipEncoding |
getZipEncoding(java.lang.String name)
Instantiates a zip encoding.
|
(package private) static java.nio.ByteBuffer |
growBufferBy(java.nio.ByteBuffer buffer,
int increment) |
(package private) static boolean |
isUTF8(java.lang.String charsetName)
Returns whether a given encoding is UTF-8.
|
static final java.lang.String UTF8
static final ZipEncoding UTF8_ZIP_ENCODING
public static ZipEncoding getZipEncoding(java.lang.String name)
If the requested characer set cannot be found, the platform default will be used instead.
name
- The name of the zip encoding. Specify null
for
the platform's default encoding.static boolean isUTF8(java.lang.String charsetName)
charsetName
- If the given name is null, then check the platform's default encoding.static java.nio.ByteBuffer growBufferBy(java.nio.ByteBuffer buffer, int increment)