public class ZstdUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isZstdCompressionAvailable()
Are the classes required to support Zstandard compression available?
|
static boolean |
matches(byte[] signature,
int length)
Checks if the signature matches what is expected for a Zstandard file.
|
static void |
setCacheZstdAvailablity(boolean doCache)
Whether to cache the result of the Zstandard for Java check.
|
public static boolean isZstdCompressionAvailable()
public static void setCacheZstdAvailablity(boolean doCache)
This defaults to false
in an OSGi environment and true
otherwise.
doCache
- whether to cache the resultpublic static boolean matches(byte[] signature, int length)
signature
- the bytes to checklength
- the number of bytes to check"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"