- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 96 for Memory (0.04 seconds)
-
src/main/java/org/codelibs/curl/io/ContentCache.java
} /** * Returns whether the content is cached in memory. * * @return true if the content is in memory, false if it is in a file */ public boolean isInMemory() { return data != null; } /** * Returns the content as a byte array. * If the content is cached in memory, a clone of the data is returned.Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 4.8K bytes - Click Count (0) -
CLAUDE.md
- **`CurlException`**: Unchecked RuntimeException for HTTP errors. ### I/O Layer - **`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+
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) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
// requireNonNull is safe because we always have either `file` or `memory`. requireNonNull(memory); return new ByteArrayInputStream(memory.getBuffer(), 0, memory.getCount()); } } synchronized void reset() throws IOException { try { close(); } finally { if (memory == null) { memory = new MemoryOutput(); } else { memory.reset();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
cos.close(); assertTrue(file.exists()); } @Test public void testThresholdOne() throws IOException { // With threshold 1, writing 1 byte should stay in memory ContentOutputStream cos = new ContentOutputStream(1, Curl.tmpDir); cos.write(new byte[] { 1 }); assertTrue(cos.isInMemory()); assertFalse(cos.done); cos.close(); }
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 11.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
// Test that constructor accepts Error as cause (verifies Throwable parameter change) String message = "SSO login failed due to memory error"; OutOfMemoryError error = new OutOfMemoryError("Not enough memory for SSO login"); SsoLoginException exception = new SsoLoginException(message, error); assertEquals(message, exception.getMessage());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 14.7K bytes - Click Count (0) -
.teamcity/test-buckets.json
"build-cache", "flow-services", "input-tracking", "internal-integ-testing", "model-core", "persistent-cache", "process-memory-services", "scala", "snapshots", "testing-base-infrastructure" ], "parallelizationMethod": { "name": "TestDistribution" } },Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 23 18:38:15 GMT 2026 - 118.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
long memory1 = MemoryUtil.getUsedMemory(); assertTrue(memory1 >= 0); // Create some objects to change memory usage @SuppressWarnings("unused") String[] largeArray = new String[1000]; for (int i = 0; i < 1000; i++) { largeArray[i] = "test" + i; } long memory2 = MemoryUtil.getUsedMemory();
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/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java
assertTrue(customException.getCause() instanceof FessSystemException); // Test with Error (not Exception) Throwable errorCause = new OutOfMemoryError("Out of memory"); GsaConfigException errorException = new GsaConfigException("GSA memory error", errorCause); assertNotNull(errorException); assertTrue(errorException.getCause() instanceof OutOfMemoryError); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
// Test that constructor accepts Error as cause (verifies Throwable parameter change) String message = "SSO process failed due to OutOfMemoryError"; OutOfMemoryError error = new OutOfMemoryError("Insufficient memory for SSO processing"); SsoProcessException exception = new SsoProcessException(message, error); assertEquals(message, exception.getMessage()); assertNotNull(exception.getCause());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java
// Test Error with abort flag String url = "http://example.com/critical-resource"; String message = "Critical memory error during crawling"; OutOfMemoryError error = new OutOfMemoryError("Cannot allocate memory"); DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, error, true); assertEquals(url, exception.getUrl());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 16.6K bytes - Click Count (0)