Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for COMPRESSED (0.07 sec)

  1. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.internal.http.promisesBody
    import okio.BufferedSource
    import okio.GzipSource
    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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            byte[] originalBytes = testData.getBytes();
    
            byte[] compressed = searchHelper.gzipCompress(originalBytes);
            byte[] decompressed = searchHelper.gzipDecompress(compressed);
    
            assertEquals(testData, new String(decompressed));
            // For small strings, gzip overhead might make compressed data larger
            // So we just verify that compression/decompression works correctly
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        server.webSocket!!.send(message)
        taskFaker.runTasks()
        assertThat(client.clientSourceBufferSize())
          .isGreaterThan(message.length.toLong()) // Not compressed.
        assertThat(client.processNextFrame()).isTrue()
        client.listener.assertTextMessage(message)
      }
    
      @Test
      fun messagesCompressedWhenConfigured() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

            this.cacheUrlOverride = cacheUrlOverride
          }
    
        /**
         * Configures this request's body to be compressed when it is transmitted. This also adds the
         * 'Content-Encoding: gzip' header.
         *
         * Only use this method if you have prior knowledge that the receiving server supports
         * gzip-compressed requests.
         *
         * It is an error to call this multiple times on the same instance.
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. okhttp-osgi-tests/build.gradle.kts

    }
    
    normalization {
      runtimeClasspath {
        /*
           - The below two ignored files are generated during test execution
           by the test: okhttp/src/test/java/okhttp3/osgi/OsgiTest.java
    
           - The compressed index.xml file contains a timestamp property which
           changes with every test execution, such that running the test
           actually changes the test classpath itself. This means that it
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 08:17:18 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        val server = serverListener.assertOpen()
    
        // Server to client message big enough to be compressed.
        val message1 = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
        server.send(message1)
        clientListener.assertTextMessage(message1)
    
        // Client to server message big enough to be compressed.
        val message2 = repeat('b', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. CHANGELOG.md

        compressing the request body and also adding the corresponding `Content-Encoding` header. Note
        that this function is sensitive to when it is called: the response body must be supplied before
        it can be compressed.
    
     *  Breaking: Remove `AddressPolicy`, `AsyncDns`, and `ConnectionListener` from the public API. We
        intend to ship a public API for these features, but we don't want to hold OkHttp 5.0.0 until
        those APIs are stable.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
Back to top