- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 42 for 1bytes (0.04 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/main/java/org/codelibs/fess/util/MemoryUtil.java
displaySize = new BigDecimal(size).divide(BigDecimal.valueOf(1000)) + "KB"; } else { displaySize = size + "bytes"; } return displaySize; } /** * Gets the currently used memory in bytes. * * @return used memory in bytes */ public static long getUsedMemory() { final Runtime runtime = Runtime.getRuntime();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 5.3K 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/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/app/web/api/admin/stats/ApiAdminStatsAction.java
public short percent; /** Used space in bytes */ public long used; /** Filesystem path */ public String path; /** Free space in bytes */ public long free; /** Total space in bytes */ public long total; /** Usable space in bytes */ public long usable; } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 19.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/DocList.java
* Gets the total content size of all documents in this list. * * @return the total content size in bytes */ public long getContentSize() { return contentSize; } /** * Adds to the total content size of this document list. * * @param contentSize the content size to add in bytes */ public void addContentSize(final long contentSize) { this.contentSize += contentSize;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.2K 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)