Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for PrintStream (0.51 seconds)

  1. src/test/java/jcifs/smb1/util/LogStreamTest.java

        }
    
        @Test
        void testSetInstanceMultipleTimes() {
            // Test setting instance multiple times
            PrintStream stream1 = new PrintStream(new ByteArrayOutputStream());
            PrintStream stream2 = new PrintStream(new ByteArrayOutputStream());
    
            LogStream.setInstance(stream1);
            LogStream instance1 = LogStream.getInstance();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/util/LogStream.java

     */
    
    package jcifs.smb1.util;
    
    import java.io.PrintStream;
    
    /**
    0 - nothing
    1 - critical [default]
    2 - basic info can be logged under load
    3 - almost everything
    N - debugging
     */
    
    public class LogStream extends PrintStream {
    
        private static LogStream inst;
    
        /**
         * The current logging level.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/util/HexdumpTest.java

        @Test
        @DisplayName("Should perform hexdump with correct formatting")
        void testHexdump() {
            // Capture output
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
    
            // Test with 16 bytes (one complete line)
            byte[] data1 = createTestData(16);
            Hexdump.hexdump(ps, data1, 0, 16);
            String output1 = baos.toString();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

     * Does not require a real SMB server - focuses on application logic.
     */
    @ExtendWith(MockitoExtension.class)
    class TestLockingTest {
    
        private PrintStream originalOut;
        private PrintStream originalErr;
        private ByteArrayOutputStream outContent;
        private ByteArrayOutputStream errContent;
    
        @Mock
        private SmbFile mockSmbFile;
    
        @BeforeEach
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java

            super.displayHelp(request, printStream);
            printStream.accept("");
            // we have no DI here (to discover)
            printStream.accept("Goals:");
            printStream.accept("  diag - display encryption configuration diagnostic");
            printStream.accept("  init - wizard to configure encryption (interactive only)");
            printStream.accept("  encrypt - encrypts input");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 25 17:39:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/CommonsCliUpgradeOptions.java

            super.displayHelp(request, printStream);
            printStream.accept("");
            // we have no DI here (to discover)
            printStream.accept("Goals:");
            printStream.accept("  help  - display this help message");
            printStream.accept("  check - check for available upgrades");
            printStream.accept("  apply - apply available upgrades");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:48:39 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleRepositoryListener.java

    import java.io.PrintStream;
    
    import org.eclipse.aether.AbstractRepositoryListener;
    import org.eclipse.aether.RepositoryEvent;
    
    public class ConsoleRepositoryListener extends AbstractRepositoryListener {
    
        private PrintStream out;
    
        public ConsoleRepositoryListener() {
            this(null);
        }
    
        public ConsoleRepositoryListener(PrintStream out) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            context.invokerRequest
                    .stdOut()
                    .ifPresent(out -> System.setOut(out instanceof PrintStream pw ? pw : new PrintStream(out, true)));
            context.invokerRequest
                    .stdErr()
                    .ifPresent(err -> System.setErr(err instanceof PrintStream pw ? pw : new PrintStream(err, true)));
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

     */
    package org.apache.maven.cli.logging;
    
    import java.io.PrintStream;
    
    import org.slf4j.Logger;
    import org.slf4j.Marker;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * @since 3.1.0
     */
    @Deprecated
    public class Slf4jStdoutLogger implements Logger {
        private static final String ERROR = "[ERROR] ";
    
        private final PrintStream out;
    
        public Slf4jStdoutLogger() {
            this(System.out);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            }
        }
    
        @Test
        public void test_main_withHelp() {
            // Test main method with help option
            PrintStream originalErr = System.err;
            try {
                ByteArrayOutputStream errContent = new ByteArrayOutputStream();
                System.setErr(new PrintStream(errContent));
    
                String[] args = { "--help" };
                // Note: main calls System.exit, so we can't test it directly
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
Back to Top