Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for COMPRESSED (0.05 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. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/GzipRequestBody.kt

    import okio.GzipSink
    import okio.buffer
    
    internal class GzipRequestBody(
      val delegate: RequestBody,
    ) : RequestBody() {
      override fun contentType() = delegate.contentType()
    
      // We don't know the compressed length in advance!
      override fun contentLength() = -1L
    
      override fun writeTo(sink: BufferedSink) {
        GzipSink(sink).buffer().use(delegate::writeTo)
      }
    
      override fun isOneShot() = delegate.isOneShot()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 04 17:43:43 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top