Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getInputStream (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                        if (extractor != null) {
                            InputStream is = null;
                            try {
                                is = lhaFile.getInputStream(head);
                                final Map<String, String> map = new HashMap<>();
                                map.put(ExtractData.RESOURCE_NAME_KEY, filename);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

             *
             * @return An input stream for reading the object content
             * @throws IOException If the object cannot be accessed
             */
            @Override
            public InputStream getInputStream() throws IOException {
                if (!connected) {
                    connect();
                }
                try {
                    final Blob blobObj = getBlob();
                    if (blobObj == null) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

             *
             * @return An input stream for reading the object content
             * @throws IOException If the object cannot be accessed
             */
            @Override
            public InputStream getInputStream() throws IOException {
                if (!connected) {
                    connect();
                }
                try {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top