- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for compressed (0.15 sec)
-
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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt
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()) { return response
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 3.2K bytes - Viewed (0) -
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));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 18.9K bytes - Viewed (0) -
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) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
header("Content-Encoding", "gzip") } val decompressed = zstdInterceptor.decompress(response) assertThat(decompressed.header("Content-Encoding")).isNull() val responseString = decompressed.body.string() assertThat(responseString).isEqualTo("hello gzip world") } @Test fun testNoDecompress() { val s = "hello not compressed world".encodeUtf8()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 4.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)