Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 37 for 1bytes (0.03 seconds)

  1. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

                // If no exception, verify it handles negative as expected
            } catch (Exception e) {
                // Expected for negative values
            }
    
            // Test boundary values
            assertEquals("1bytes", MemoryUtil.byteCountToDisplaySize(1L));
            assertEquals("999bytes", MemoryUtil.byteCountToDisplaySize(999L));
    
            // Test very large values close to EB boundary
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

         */
        public Object fromBinaryToObject(final byte[] bytes) {
            final String serializer = getSerializerType();
            return switch (serializer) {
            case KRYO -> deserializeWithKryo(bytes);
            case JAVABIN -> SerializeUtil.fromBinaryToObject(bytes);
            default -> throw new IllegalArgumentException("Unexpected value: " + serializer);
            };
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 10 01:54:09 GMT 2026
    - 10.5K bytes
    - Click Count (3)
  3. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                    return;
                }
                final byte[] bytes = content.getBytes(StandardCharsets.UTF_8);
                try (OutputStream out = Files.newOutputStream(filePath, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING,
                        LinkOption.NOFOLLOW_LINKS)) {
                    out.write(bytes);
                }
            } catch (final IOException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

         */
        @Test
        public void test_serializationConsistency() {
            String original = "Consistency Test";
    
            byte[] serialized1 = serializer.fromObjectToBinary(original);
            byte[] serialized2 = serializer.fromObjectToBinary(original);
    
            // Note: Serialized bytes may not be identical due to metadata,
            // but deserialization should produce the same result
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            return new JakartaServletDiskFileUpload(fileItemFactory) {
                @Override
                public byte[] getBoundary(final String contentType) { // for security
                    final byte[] boundary = super.getBoundary(contentType);
                    checkBoundarySize(contentType, boundary);
                    return boundary;
                }
            };
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:48:41 GMT 2026
    - 18.9K bytes
    - Click Count (1)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            }
        }
    
        /**
         * Checks if the byte array contains UTF-8 BOM (Byte Order Mark).
         *
         * @param b the byte array to check
         * @return true if the bytes represent UTF-8 BOM, false otherwise
         */
        private boolean isUtf8BomBytes(final byte[] b) {
            return b[0] == (byte) 0xEF && b[1] == (byte) 0xBB && b[2] == (byte) 0xBF;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                            return responseDataMap;
                        } catch (final Exception e) {
                            throw new CrawlerSystemException("Could not create an instance from bytes.", e);
                        }
                    }
                }
                return null;
            } catch (final Exception e) {
                throw new CrawlingAccessException("Failed to parse " + url, e);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java

                public String getAppCipherAlgorithm() {
                    return "AES";
                }
    
                @Override
                public String getAppCipherKey() {
                    return "1234567890123456"; // 16 bytes for AES
                }
            });
    
            // Create test cipher - use proper constructor with simple implementation
            InvertibleCryptographer cookieCipher = new InvertibleCryptographer("AES", "1234567890123456", null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  9. .teamcity/scripts/CheckWrapper.java

        }
    
        private static String readFully(InputStream inputStream) throws IOException {
            try (InputStream input = inputStream; ByteArrayOutputStream out = new ByteArrayOutputStream()) {
                byte[] buf = new byte[8192];
                int read;
                while ((read = input.read(buf)) >= 0) {
                    out.write(buf, 0, read);
                }
                return out.toString(StandardCharsets.UTF_8.name());
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

                    "This is test data for compression that should be long enough to actually compress effectively when using gzip compression algorithm";
            byte[] originalBytes = testData.getBytes();
    
            byte[] compressed = searchHelper.gzipCompress(originalBytes);
            byte[] decompressed = searchHelper.gzipDecompress(compressed);
    
            assertEquals(testData, new String(decompressed));
    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)
Back to Top