Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for gzipDecompress (0.32 seconds)

  1. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                                final String encoded = cookie.getValue();
                                final byte[] compressed = Base64.getUrlDecoder().decode(encoded);
                                final byte[] jsonBytes = gzipDecompress(compressed);
                                final List<?> list = mapper.readValue(jsonBytes, List.class);
    
                                final List<RequestParameter> result = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 36.3K bytes
    - Click Count (0)
  2. 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
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

                assertNotNull(response.getContentAsString());
            }
        }
    
        // --- GZIP response tests ---
    
        /**
         * Helper to GZIP-compress a string.
         */
        private byte[] gzipCompress(String text) throws IOException {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                gos.write(text.getBytes(StandardCharsets.UTF_8));
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
Back to Top