Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for InputStreamThread (0.3 sec)

  1. src/main/java/org/codelibs/fess/util/InputStreamThread.java

     * optionally process each line with a callback function, and maintain a circular buffer
     * of recent lines for retrieval.
     */
    public class InputStreamThread extends Thread {
        /** Logger instance for this class */
        private static final Logger logger = LogManager.getLogger(InputStreamThread.class);
    
        /** Buffered reader for reading from the input stream */
        private final BufferedReader br;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            Process mockProcess = createMockProcess("test data");
            JobProcess jobProcess = new JobProcess(mockProcess);
    
            InputStreamThread thread = jobProcess.getInputStreamThread();
    
            assertNotNull(thread);
            assertEquals("InputStreamThread", thread.getName());
        }
    
        public void test_constructor_withZeroBufferSize() throws IOException {
            Process mockProcess = createMockProcess("test");
    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/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, InputStreamThread.MAX_BUFFER_SIZE, null);
            thread.start();
            thread.join(2000);
    
            String output = thread.getOutput();
            String[] lines = output.split("\n");
    
            assertTrue("Buffer should respect max size", lines.length <= InputStreamThread.MAX_BUFFER_SIZE + 1);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/JobProcess.java

         */
        protected InputStreamThread inputStreamThread;
    
        /**
         * Constructs a new JobProcess with the specified process.
         * Uses the default buffer size and no output callback.
         *
         * @param process the system process to wrap
         */
        public JobProcess(final Process process) {
            this(process, InputStreamThread.MAX_BUFFER_SIZE, null);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

                currentProcess = pb.start();
    
                // monitoring
                mt = new MonitorThread(currentProcess, executionTimeout);
                mt.start();
    
                final InputStreamThread it = new InputStreamThread(currentProcess.getInputStream(), commandOutputEncoding, maxOutputLine);
                it.start();
    
                currentProcess.waitFor();
                it.join(5000);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

    import org.codelibs.core.io.CopyUtil;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    import org.codelibs.fess.util.InputStreamThread;
    
    import jakarta.annotation.PostConstruct;
    
    /**
     * Command-based thumbnail generator that executes external commands to create thumbnails.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Fri Jul 18 14:34:06 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

    import org.codelibs.core.io.CloseableUtil;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.exception.JobNotFoundException;
    import org.codelibs.fess.exception.JobProcessingException;
    import org.codelibs.fess.util.InputStreamThread;
    import org.codelibs.fess.util.JobProcess;
    
    import jakarta.annotation.PreDestroy;
    
    /**
     * Helper class for managing system processes in Fess.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

    import org.codelibs.fess.helper.SystemHelper;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.codelibs.fess.util.ComponentUtil;
    import org.codelibs.fess.util.InputStreamThread;
    import org.codelibs.fess.util.JobProcess;
    
    import jakarta.servlet.ServletContext;
    
    public class GenerateThumbnailJobTest extends UnitFessTestCase {
    
        private GenerateThumbnailJob thumbnailJob;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/job/PythonJob.java

    import org.codelibs.fess.helper.ProcessHelper;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    import org.codelibs.fess.util.InputStreamThread;
    import org.codelibs.fess.util.JobProcess;
    import org.codelibs.fess.util.SystemUtil;
    
    import jakarta.servlet.ServletContext;
    
    /**
     * Job for executing Python scripts within the Fess search engine environment.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            @Override
            public InputStreamThread getInputStreamThread() {
                return new MockInputStreamThread(output);
            }
    
            @Override
            public Process getProcess() {
                return new MockProcess(exitValue);
            }
        }
    
        // Mock InputStreamThread implementation
        private class MockInputStreamThread extends InputStreamThread {
            private final String output;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top