- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 30 for 1bytes (0.03 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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 boundaryCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12K bytes - Click Count (0) -
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) -
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 resultCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 21.6K bytes - Click Count (0) -
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) -
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) -
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) -
.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) -
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) -
src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java
// "Hello" encoded in standard Base64 final byte[] result = authenticator.decodeBase64("SGVsbG8="); assertEquals("Hello", new String(result)); } @Test public void test_decodeBase64_urlSafe() { // Base64 URL encoding (uses - and _ instead of + and /) final byte[] result = authenticator.decodeBase64("SGVsbG9Xb3JsZA");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 15 12:54:47 GMT 2026 - 11K bytes - Click Count (0) -
.teamcity/scripts/FindCommits.java
} private static String readFully(InputStream in) throws IOException { try (InputStream input = in; 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 - 5.5K bytes - Click Count (0)