Class Brotli

java.lang.Object
io.netty.handler.codec.compression.Brotli

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

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static java.lang.Throwable
    Returns Throwable of unavailability cause
    static void
    Throws when brotli support is missing from the classpath or is unavailable on this platform
    static boolean
     

    Methods inherited from class java.lang.Object

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

    • logger

      private static final InternalLogger logger
    • CNFE

      private static final java.lang.ClassNotFoundException CNFE
    • cause

      private static java.lang.Throwable cause
  • Constructor Details

    • Brotli

      private Brotli()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Returns:
      true when brotli4j 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 brotli support is missing from the classpath or is unavailable on this platform
      Throws:
      java.lang.Throwable - a ClassNotFoundException if brotli4j is missing or a UnsatisfiedLinkError if brotli4j native lib can't be loaded
    • cause

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