Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for 1MB (0.02 seconds)

  1. CLAUDE.md

    - **`ContentCache`**: In-memory or file-based caching. Implements `Closeable` and auto-deletes file cache on close.
    
    - **`ContentOutputStream`**: Extends `DeferredFileOutputStream`. Writes to memory until threshold (default 1MB) exceeded, then spills to temp file.
    
    ## Technical Details
    
    - **Java Version**: 17+
    - **Dependencies**: Apache Commons IO (runtime), JUnit 4 (test)
    - **Module Name**: `org.codelibs.curl4j`
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Jan 08 07:28:24 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                assertEquals(-1, stream.read()); // Should indicate end of stream
            }
        }
    
        @Test
        public void testMemoryBasedCacheWithLargeData() throws IOException {
            // Create a large byte array (1MB)
            byte[] data = new byte[1024 * 1024];
            for (int i = 0; i < data.length; i++) {
                data[i] = (byte) (i % 256);
            }
    
            ContentCache cache = new ContentCache(data);
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/core/io/FileUtilTest.java

            // Create a file larger than MAX_BUF_SIZE (10MB)
            // Write 11MB of data
            try (FileOutputStream fos = new FileOutputStream(largeFile)) {
                final byte[] chunk = new byte[1024 * 1024]; // 1MB
                for (int i = 0; i < 11; i++) { // Write 11MB
                    fos.write(chunk);
                }
            }
    
            try {
                FileUtil.readBytes(largeFile);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  4. src/main/resources/fess_label_en.properties

    labels.facet_contentLength_100kto500k=100KB - 500KB
    labels.facet_contentLength_500kto1m=500KB - 1MB
    labels.facet_contentLength_1m=1MB - &nbsp;
    labels.facet_contentLength_10kto50k=10KB - 50KB
    labels.facet_contentLength_50kto100k=50KB - 100KB
    labels.facet_contentLength_100kto250k=100KB - 250KB
    labels.facet_contentLength_250kto500k=250KB - 500KB
    labels.facet_contentLength_1mto5m=1MB - 5MB
    labels.facet_contentLength_5m=5MB - &nbsp;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 48.9K bytes
    - Click Count (0)
  5. src/main/resources/fess_label.properties

    labels.facet_contentLength_100kto500k=100KB - 500KB
    labels.facet_contentLength_500kto1m=500KB - 1MB
    labels.facet_contentLength_1m=1MB - &nbsp;
    labels.facet_contentLength_10kto50k=10KB - 50KB
    labels.facet_contentLength_50kto100k=50KB - 100KB
    labels.facet_contentLength_100kto250k=100KB - 250KB
    labels.facet_contentLength_250kto500k=250KB - 500KB
    labels.facet_contentLength_1mto5m=1MB - 5MB
    labels.facet_contentLength_5m=5MB - &nbsp;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 48.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

     *
     * ESSourceReader reader = new ESSourceReader(client, settings, indexName);
     * reader.setScrollSize(1000); // Set the scroll size
     * reader.setLimitOfDocumentSize(1024 * 1024); // Limit document size to 1MB
     * reader.setQuery(QueryBuilders.termQuery("field", "value")); // Set a query
     *
     * Map<String, Object> document;
     * while ((document = reader.read()) != null) {
     *     // Process the document
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

                private static final long serialVersionUID = 1L;
    
                @Override
                public String getIndexerDataMaxDocumentRequestSize() {
                    return "1048576"; // 1MB
                }
    
                @Override
                public Integer getIndexerDataMaxDocumentCacheSizeAsInteger() {
                    return 10000;
                }
    
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/curl/CurlRequest.java

        /**
         * The character encoding for the request.
         */
        protected String encoding = "UTF-8";
    
        /**
         * The threshold size for the request body.
         */
        protected int threshold = 1024 * 1024; // 1MB
    
        /**
         * The HTTP method for the request.
         */
        protected final Method method;
    
        /**
         * The list of request parameters.
         */
        protected List<String> paramList;
    
        /**
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    // TODO(user): switch to nano precision. A natural unit of cost is "bytes", and a micro precision
    // would mean a maximum rate of "1MB/s", which might be small in some cases.
    @Beta
    @J2ktIncompatible
    @GwtIncompatible
    public abstract class RateLimiter {
      /**
       * Creates a {@code RateLimiter} with the specified stable throughput, given as "permits per
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:05:27 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  10. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

        server.enqueue(MockResponse(body = "abc"))
    
        val ctxt = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext
    
        val cacheSize = 1L * 1024 * 1024 // 1MB
        val cache = Cache(ctxt.cacheDir.resolve("testCache"), cacheSize)
    
        try {
          client =
            client
              .newBuilder()
              .cache(cache)
              .build()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
Back to Top