Class Zstd


  • public final class Zstd
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Throwable cause  
      private static InternalLogger logger  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Zstd()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Throwable cause()
      Returns Throwable of unavailability cause
      static void ensureAvailability()
      Throws when zstd support is missing from the classpath or is unavailable on this platform
      static boolean isAvailable()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cause

        private static final java.lang.Throwable cause
    • Constructor Detail

      • Zstd

        private Zstd()
    • Method Detail

      • isAvailable

        public static boolean isAvailable()
        Returns:
        true when zstd-jni is in the classpath and native library is available on this platform and could be loaded
      • ensureAvailability

        public static void ensureAvailability()
                                       throws java.lang.Throwable
        Throws when zstd support is missing from the classpath or is unavailable on this platform
        Throws:
        java.lang.Throwable - a ClassNotFoundException if zstd-jni is missing or a ExceptionInInitializerError if zstd native lib can't be loaded
      • cause

        public static java.lang.Throwable cause()
        Returns Throwable of unavailability cause