- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 47 for 0bytes (0.05 seconds)
-
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
import org.junit.jupiter.api.Test; import com.google.common.collect.Lists; public class MemoryUtilTest extends UnitFessTestCase { @Test public void test_byteCountToDisplaySize() { assertEquals("0bytes", MemoryUtil.byteCountToDisplaySize(0L)); assertEquals("999bytes", MemoryUtil.byteCountToDisplaySize(999L)); assertEquals("1000bytes", MemoryUtil.byteCountToDisplaySize(1000L));Created: 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/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) -
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/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) -
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/storage/StorageItem.java
* * @param name the name of the item * @param path the path of the item * @param directory true if this item is a directory * @param size the size of the item in bytes * @param lastModified the last modified timestamp * @param encodedId the base64-encoded ID of the item */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 13 02:21:17 GMT 2025 - 2.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/storage/StorageClient.java
/** * Uploads an object to storage. * * @param objectName the name/path for the object * @param inputStream the input stream of data to upload * @param size the size of the data in bytes * @param contentType the MIME type of the content */ void uploadObject(String objectName, InputStream inputStream, long size, String contentType); /** * Downloads an object from storage. *Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 13 02:21:17 GMT 2025 - 2.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java
.setState(state)// .build(); } /** * Decodes a Base64 string to bytes. * * @param base64String the Base64 string to decode * @return the decoded bytes, or null if input is null */ protected byte[] decodeBase64(String base64String) { if (base64String == null) { return null; } try {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Dec 14 01:18:25 GMT 2025 - 16.5K 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)