Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for decompress (0.26 sec)

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

            byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_NONE);
            assertArrayEquals(testData, compressed);
    
            byte[] decompressed = compressionService.decompress(compressed, CompressionService.COMPRESSION_NONE);
            assertArrayEquals(testData, decompressed);
        }
    
        @Test
        @DisplayName("Test LZ77 compression and decompression")
    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 that was used
         * @return the decompressed data
         * @throws CIFSException if decompression fails
         */
        byte[] decompress(byte[] compressedData, int algorithm) throws CIFSException;
    
        /**
         * Decompresses data with offset and length parameters.
         *
         * @param compressedData the compressed data buffer
         * @param offset the offset in the buffer
    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. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

            header("Content-Encoding", "zstd")
          }
    
        val decompressed = zstdInterceptor.decompress(response)
        assertThat(decompressed.header("Content-Encoding")).isNull()
    
        assertFailsWith<IOException> {
          decompressed.body.string()
        }.also { ioe ->
          assertThat(ioe).hasMessage("zstd decompress failed: Unknown frame descriptor")
        }
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

          val response = chain.proceed(request)
    
          decompress(response)
        } else {
          chain.proceed(chain.request())
        }
    
      /**
       * Returns a decompressed copy of the Response, typically via a streaming Source.
       * If no known decompression or the response is not compressed, returns the response unmodified.
       */
      internal fun decompress(response: Response): Response {
        if (!response.promisesBody()) {
    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. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        val response =
          response("https://httpbin.org/brotli", s.decodeHex()) {
            header("Content-Encoding", "br")
          }
    
        val uncompressed = brotliInterceptor.decompress(response)
    
        val responseString = uncompressed.body.string()
        assertThat(responseString).contains("\"brotli\": true,")
        assertThat(responseString).contains("\"Accept-Encoding\": \"br\"")
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/custom-request-and-route.md

    ///
    
    First, we create a `GzipRequest` class, which will overwrite the `Request.body()` method to decompress the body in the presence of an appropriate header.
    
    If there's no `gzip` in the header, it will not try to decompress the body.
    
    That way, the same route class can handle gzip compressed or uncompressed requests.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. okhttp-zstd/api/okhttp-zstd.api

    public final class okhttp3/zstd/Zstd : okhttp3/CompressionInterceptor$DecompressionAlgorithm {
    	public static final field INSTANCE Lokhttp3/zstd/Zstd;
    	public fun decompress (Lokio/BufferedSource;)Lokio/Source;
    	public fun getEncoding ()Ljava/lang/String;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 18:34:32 UTC 2025
    - 259 bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Gzip.kt

    import okio.BufferedSource
    import okio.GzipSource
    import okio.Source
    
    object Gzip : DecompressionAlgorithm {
      override val encoding: String get() = "gzip"
    
      override fun decompress(compressedSource: BufferedSource): Source = GzipSource(compressedSource)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 936 bytes
    - Viewed (0)
  9. docs_src/custom_request_and_route/tutorial001_py310.py

        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
            original_route_handler = super().get_route_handler()
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 976 bytes
    - Viewed (0)
  10. docs_src/custom_request_and_route/tutorial001_py39.py

        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
            original_route_handler = super().get_route_handler()
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 967 bytes
    - Viewed (0)
Back to top