Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for COMPRESSED (0.59 sec)

  1. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_LZ77);
            assertNotNull(compressed);
            assertTrue(compressed.length > 0);
            // Compressed size should typically be smaller (though not guaranteed for all data)
    
            byte[] decompressed = compressionService.decompress(compressed, CompressionService.COMPRESSION_LZ77);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/CompressionService.java

         * @param algorithm the compression algorithm to use
         * @return the compressed data
         * @throws CIFSException if compression fails
         */
        byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException;
    
        /**
         * Decompresses data that was compressed with the specified algorithm.
         *
         * @param compressedData the compressed data
         * @param algorithm the compression algorithm that was used
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SearchHelper.java

        }
    
        /**
         * Decompresses GZIP-compressed data.
         *
         * @param compressed The GZIP-compressed data to decompress
         * @return Decompressed data
         * @throws IORuntimeException if decompression fails
         */
        protected byte[] gzipDecompress(final byte[] compressed) {
            try (final ByteArrayInputStream bis = new ByteArrayInputStream(compressed);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 36.3K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

     */
    package okhttp3
    
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.internal.http.promisesBody
    import okio.BufferedSource
    import okio.Source
    import okio.buffer
    
    /**
     * Transparent Compressed response support.
     *
     * The algorithm map will be turned into a heading such as "Accept-Encoding: br, gzip"
     *
     * If [algorithms] is empty this interceptor has no effect. To disable compression set
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 2.9K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

            }
            return address;
        }
    
        /**
         * Compresses an IPv6 address string to its canonical compressed form.
         * For example, "0:0:0:0:0:0:0:1" becomes "::1"
         *
         * @param ipv6Address the IPv6 address string to compress
         * @return the compressed IPv6 address string
         */
        protected static String compressIPv6(final String ipv6Address) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 06 08:31:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        callback.assertTextMessage("Hello")
      }
    
      @Test fun serverWithCompressionCompressedHelloTwoChunks() {
        data.write("418460b420bb92fced72".decodeHex()) // first 4 bytes of compressed 'Hello'
        data.write("80833851d9d4f156d9".decodeHex()) // last 3 bytes of compressed 'Hello'
        serverReaderWithCompression.processNextFrame()
        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientTwoFrameHello() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

      @Test
      fun testNoDecompress() {
        val s = "hello not compressed world".encodeUtf8()
    
        val response = response("https://example.com/", s)
    
        val decompressed = zstdInterceptor.decompress(response)
        assertThat(decompressed.header("Content-Encoding")).isNull()
    
        val responseString = decompressed.body.string()
        assertThat(responseString).isEqualTo("hello not compressed world")
      }
    
      @Test
      fun testUnknownAlgorithm() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  8. docs/features/interceptors.md

    Interceptors can be chained. Suppose you have both a compressing interceptor and a checksumming interceptor: you'll need to decide whether data is compressed and then checksummed, or checksummed and then compressed. OkHttp uses lists to track interceptors, and interceptors are called in order.
    
    ![Interceptors Diagram](../assets/images/******@****.***)
    
    ### Application Interceptors
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SingletonImmutableSet.java

    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final class SingletonImmutableSet<E> extends ImmutableSet<E> {
      // We deliberately avoid caching the asList and hashCode here, to ensure that with
      // compressed oops, a SingletonImmutableSet packs all the way down to the optimal 16 bytes.
    
      final transient E element;
    
      SingletonImmutableSet(E element) {
        this.element = Preconditions.checkNotNull(element);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

                throw new CIFSException("Compressed data cannot be null");
            }
            return decompress(compressedData, 0, compressedData.length, algorithm);
        }
    
        @Override
        public byte[] decompress(byte[] compressedData, int offset, int length, int algorithm) throws CIFSException {
            if (compressedData == null) {
                throw new CIFSException("Compressed data cannot be null");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top