Class LzfDecompressor.Builder

    • Method Detail

      • safeInstance

        @UnstableApi
        public LzfDecompressor.Builder safeInstance​(boolean safeInstance)
        If true decoder will use ChunkDecoder that only uses standard JDK access methods, and should work on all Java platforms and JVMs. Otherwise decoder will try to use highly optimized ChunkDecoder implementation that uses Sun JDK's Unsafe class (which may be included by other JDK's as well).
        Parameters:
        safeInstance - Whether to use the safe instance only
        Returns:
        This builder