| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile ZstdUtils. | |
| private static final byte[] | SKIPPABLE_FRAME_MAGIC
Skippable Frame Magic Bytes - the three common bytes. |
| private static final byte[] | ZSTANDARD_FRAME_MAGIC
Zstandard Frame Magic Bytes. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ZstdUtils. | |
| private static boolean | |
| public static boolean | Returns: true if the classes required to support Zstandard compression are availableAre the classes required to support Zstandard compression available? |
| public static boolean | Returns: true if signature matches the Ztstandard or skippable frame magic bytes, false otherwisethe bytes to check signature, final int the number of bytes to check length)Checks if the signature matches what is expected for a Zstandard file. |
| public static void | setCacheZstdAvailablity(final boolean
whether to cache the result doCache)Whether to cache the result of the Zstandard for Java check. |
| cachedZstdAvailability | back to summary |
|---|---|
| private static volatile ZstdUtils. | |
| SKIPPABLE_FRAME_MAGIC | back to summary |
|---|---|
| private static final byte[] SKIPPABLE_FRAME_MAGIC Skippable Frame Magic Bytes - the three common bytes. | |
| ZSTANDARD_FRAME_MAGIC | back to summary |
|---|---|
| private static final byte[] ZSTANDARD_FRAME_MAGIC Zstandard Frame Magic Bytes. | |
| ZstdUtils | back to summary |
|---|---|
| private ZstdUtils() Private constructor to prevent instantiation of this utility class. | |
| getCachedZstdAvailability | back to summary |
|---|---|
| pack-priv static ZstdUtils. | |
| internalIsZstdCompressionAvailable | back to summary |
|---|---|
| private static boolean internalIsZstdCompressionAvailable() | |
| isZstdCompressionAvailable | back to summary |
|---|---|
| public static boolean isZstdCompressionAvailable() Are the classes required to support Zstandard compression available?
| |
| matches | back to summary |
|---|---|
| public static boolean matches(final byte[] signature, final int length) Checks if the signature matches what is expected for a Zstandard file.
| |
| setCacheZstdAvailablity | back to summary |
|---|---|
| public static void setCacheZstdAvailablity(final boolean doCache) Whether to cache the result of the Zstandard for Java check.
This defaults to
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ZstdUtils. | |
| public static final ZstdUtils. | |
| public static final ZstdUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ZstdUtils. | |
| public static ZstdUtils. |
| CACHED_AVAILABLE | back to summary |
|---|---|
| public static final ZstdUtils. | |
| CACHED_UNAVAILABLE | back to summary |
|---|---|
| public static final ZstdUtils. | |
| DONT_CACHE | back to summary |
|---|---|
| public static final ZstdUtils. | |
| CachedAvailability | back to summary |
|---|---|
| private CachedAvailability() | |
| valueOf | back to summary |
|---|---|
| public static ZstdUtils. | |
| values | back to summary |
|---|---|
| public static ZstdUtils. | |