- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for getInputStream (0.06 sec)
-
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
// First read try (InputStream stream1 = cache.getInputStream()) { byte[] buffer1 = new byte[1024]; int bytesRead1 = stream1.read(buffer1); assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8")); } // Second read - should work independently try (InputStream stream2 = cache.getInputStream()) { byte[] buffer2 = new byte[1024];Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java
} /** * Test that getInputStream() attempts to connect if not connected. */ public void test_getInputStream_autoConnect() throws Exception { URL url = new URL("gcs://mybucket/object.txt"); Handler handler = new Handler(); Handler.GcsURLConnection conn = (Handler.GcsURLConnection) handler.openConnection(url);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
* try (ContentCache cache = new ContentCache(data)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * * // File-based caching * File file = new File("example.txt"); * try (ContentCache cache = new ContentCache(file)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * } * </pre> * */
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 4.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
} /** * Test that getInputStream() attempts to connect if not connected. */ public void test_getInputStream_autoConnect() throws Exception { URL url = new URL("storage://mybucket/object.txt"); Handler handler = new Handler(); Handler.StorageURLConnection conn = (Handler.StorageURLConnection) handler.openConnection(url);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 5.9K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
} else { throw new CurlException("The content does not exist."); } } return contentCache.getInputStream(); } /** * Sets the content cache for the response. * * @param contentCache the content cache to set. */ public void setContentCache(final ContentCache contentCache) {Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java
if (logger.isDebugEnabled()) { logger.debug("Thumbnail Command: {}", cmdList); } p = pb.start(); ist = new InputStreamThread(p.getInputStream(), Charset.defaultCharset(), 0, s -> { if (logger.isDebugEnabled()) { logger.debug(s); } });Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Dec 04 08:02:36 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
if (GZIP.equals(con.getContentEncoding())) { return new GZIPInputStream(con.getInputStream()); } else { return con.getInputStream(); } } else if (Method.HEAD.toString().equalsIgnoreCase(con.getRequestMethod())) {
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 18.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 9.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 07:57:44 UTC 2025 - 9.5K bytes - Viewed (0)