Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 57 for 1bytes (0.04 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top