Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for InputStream (0.09 sec)

  1. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            assertTrue(output.contains("UTF-16 test"));
        }
    
        public void test_run_withIOException() throws InterruptedException {
            InputStream faultyStream = new InputStream() {
                @Override
                public int read() throws IOException {
                    throw new IOException("Test exception");
                }
            };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            private final InputStream inputStream;
    
            public MockProcess(String output) {
                this.inputStream = new ByteArrayInputStream(output.getBytes());
            }
    
            @Override
            public OutputStream getOutputStream() {
                return null;
            }
    
            @Override
            public InputStream getInputStream() {
                return inputStream;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/ResourceHandler.java

    package org.codelibs.core.io;
    
    import java.io.InputStream;
    
    /**
     * Interface for handlers that process resources.
     *
     * @author taedium
     */
    public interface ResourceHandler {
    
        /**
         * Processes a resource.
         *
         * @param path the path
         * @param is the {@link InputStream} to read the resource
         */
        void processResource(String path, InputStream is);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 997 bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            assertTrue(stopwordsFile.stopwordsItemList.size() < originalSize);
        }
    
        // Test reload with InputStream
        public void test_reload_withComments() {
            String content = "# This is a comment\n" + "word1\n" + "\n" + // empty line
                    "word2\n" + "# Another comment\n" + "word3\n";
    
            InputStream is = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
            stopwordsFile.reload(null, is);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.time.LocalDateTime;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

      }
    
      /**
       * Wraps a {@link InputStream}, limiting the number of bytes which can be read.
       *
       * @param in the input stream to be wrapped
       * @param limit the maximum number of bytes to be read
       * @return a length-limited {@link InputStream}
       * @since 14.0 (since 1.0 as com.google.common.io.LimitInputStream)
       */
      @J2ktIncompatible
      public static InputStream limit(InputStream in, long limit) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.kuromojiFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.protwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlRequestTest.java

    import static org.junit.Assert.assertSame;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.HttpURLConnection;
    import java.net.Proxy;
    import java.util.concurrent.ForkJoinPool;
    
    import javax.net.ssl.SSLSocketFactory;
    
    import org.codelibs.curl.Curl.Method;
    import org.junit.Test;
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.stopwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top