Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 23 for printWriter (0.06 seconds)

  1. src/test/java/org/codelibs/fess/api/chat/ChatApiManagerTest.java

            assertNull(response.get("message"));
        }
    
        @Test
        public void test_sendSseEvent_basic() {
            final StringWriter stringWriter = new StringWriter();
            final PrintWriter writer = new PrintWriter(stringWriter);
    
            chatApiManager.sendSseEvent(writer, "test", Map.of("key", "value"));
    
            final String output = stringWriter.toString();
            assertTrue(output.contains("event: test"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 14 01:39:16 GMT 2026
    - 35K bytes
    - Click Count (0)
  2. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratorTask.kt

            } else {
                emptyList()
            }
    
            markdownFile.bufferedWriter().use {
                PrintWriter(it).run {
                    for (line in head) {
                        println(line)
                    }
                    graph(elements.get())
                }
            }
        }
    
        private fun PrintWriter.graph(elements: List<ArchitectureElement>) {
            println(
                """
                $markerComment
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ResourcesTest.java

        // Check that we can find a resource if it is visible to the context class
        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

      public void testLineReading() throws IOException {
        File temp = createTempFile();
        assertThat(Files.readFirstLine(temp, UTF_8)).isNull();
        assertTrue(Files.readLines(temp, UTF_8).isEmpty());
    
        PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8));
        w.println("hello");
        w.println("");
        w.println(" world  ");
        w.println("");
        w.close();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java

            });
    
            reportErrors(errors, getReportFile().get().getAsFile());
        }
    
        private void reportErrors(Map<File, List<Error>> errors, File reportFile) {
            try (PrintWriter fw = new PrintWriter(new FileWriter(reportFile))) {
                writeHeader(fw);
                if (errors.isEmpty()) {
                    fw.println("All clear!");
                    return;
                }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 23:22:57 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        // Check that we can find a resource if it is visible to the context class
        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            assertEquals("test", o2);
        }
    
        @Test
        public void testLoadSave() throws IOException {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            pw.println("# ");
            pw.println("# The Main  ");
            pw.println("# ");
            pw.println("# Comment ");
            pw.println("# ");
            pw.println("");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 09 14:29:03 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                Path logFile = context.cwd.resolve(context.options().logFile().get());
                try {
                    PrintWriter printWriter = new PrintWriter(Files.newBufferedWriter(logFile), true);
                    context.closeables.add(printWriter);
                    return printWriter::println;
                } catch (IOException e) {
                    throw new MavenException("Unable to redirect logging to " + logFile, e);
    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. src/main/java/org/codelibs/fess/util/LogNotificationAppender.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.util;
    
    import java.io.PrintWriter;
    import java.io.Serializable;
    import java.io.StringWriter;
    import java.util.Set;
    
    import org.apache.logging.log4j.Level;
    import org.apache.logging.log4j.core.Appender;
    import org.apache.logging.log4j.core.Core;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.api.chat;
    
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Set;
    
    import org.apache.logging.log4j.LogManager;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
Back to Top