- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for ContentOutputStream (0.24 seconds)
-
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* <li>{@code done} - Flag indicating whether the file has been retrieved.</li> * </ul> * * <p>Constructors:</p> * <ul> * <li>{@code ContentOutputStream(int threshold, File tmpDir)} - Constructs a ContentOutputStream with a specified threshold and temporary directory.</li> * </ul> * * <p>Methods:</p> * <ul> * <li>{@code getFile()} - Marks the file as retrieved and returns the file.</li>
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4 }); assertFalse(cos.done); assertTrue(cos.isInMemory()); cos.close(); assertFalse(cos.done); } @Test public void inFile() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);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) -
README.md
- `org.codelibs.curl.CurlResponse`: wrapper for HTTP responses. - `org.codelibs.curl.CurlException`: unchecked exception for errors. - `org.codelibs.curl.io.ContentCache` and `ContentOutputStream`: internal utilities for streaming and caching. Refer to the Javadoc for full API details. ## Building and Testing ```bash git clone https://github.com/codelibs/curl4j.git cd curl4j mvn clean test
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 2.5K bytes - Click Count (0) -
CLAUDE.md
│ │ ├── CurlException.java # Unchecked exception for HTTP errors │ │ └── io/ │ │ ├── ContentCache.java # In-memory or file-based caching │ │ └── ContentOutputStream.java # Threshold-based output stream │ └── test/java/org/codelibs/curl/ │ ├── CurlTest.java # Factory method tests │ ├── CurlRequestTest.java # Request builder tests
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) -
src/main/java/org/codelibs/curl/CurlRequest.java
*/ private void writeContent(final Supplier<InputStream> handler) { try (BufferedInputStream bis = new BufferedInputStream(handler.get()); ContentOutputStream dfos = new ContentOutputStream(threshold, Curl.tmpDir)) { final byte[] bytes = new byte[4096]; int length = bis.read(bytes); while (length != -1) { if (length != 0) {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) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
import java.util.function.Consumer; import java.util.logging.Logger; import java.util.zip.GZIPOutputStream; import static org.codelibs.curl.io.ContentOutputStream.PREFIX; import static org.codelibs.curl.io.ContentOutputStream.SUFFIX; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail;
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0)