- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for PrintStream (0.06 sec)
-
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
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. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java
} } 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
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/exception/MultipleCrawlingAccessException.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.exception; import java.io.PrintStream; import java.io.PrintWriter; /** * An exception that indicates multiple crawling access exceptions occurred. * This exception holds an array of Throwable objects representing the individual causes.
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 2.5K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
package okhttp3.containers import assertk.assertThat import assertk.assertions.contains import assertk.assertions.isEmpty import assertk.assertions.isNotEmpty import java.io.ByteArrayOutputStream import java.io.PrintStream import java.util.concurrent.ExecutorService import java.util.concurrent.Executors import okhttp3.Dispatcher import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.7K bytes - Viewed (1) -
src/main/java/jcifs/smb1/util/Hexdump.java
* </pre> * * @param ps the PrintStream to write the hexdump output to * @param src the source byte array containing the data to dump * @param srcIndex the starting index in the source array * @param length the number of bytes to dump from the source array */ public static void hexdump(final PrintStream ps, final byte[] src, final int srcIndex, final int length) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
try { // Redirect to ByteArrayOutputStream to avoid console output ByteArrayOutputStream baos = new ByteArrayOutputStream(); java.io.PrintStream ps = new java.io.PrintStream(baos); exception.printStackTrace(ps); String output = baos.toString(); assertNotNull(output); assertTrue(output.contains("DictionaryExpiredException"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
} // Test main method with invalid arguments public void test_main_withInvalidArguments() { ByteArrayOutputStream errContent = new ByteArrayOutputStream(); PrintStream originalErr = System.err; System.setErr(new PrintStream(errContent)); try { String[] args = { "--invalidOption", "value" }; Crawler.main(args); String error = errContent.toString();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 30.5K bytes - Viewed (0)