Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for writeLines (0.17 seconds)

  1. android/guava/src/com/google/common/io/CharSink.java

       * the operating system's default line separator. This method is equivalent to {@code
       * writeLines(lines, System.getProperty("line.separator"))}.
       *
       * @throws IOException if an I/O error occurs while writing to this sink
       */
      public void writeLines(Iterable<? extends CharSequence> lines) throws IOException {
        writeLines(lines, System.getProperty("line.separator"));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/CharSinkTester.java

        String separator = System.getProperty("line.separator");
        sink.writeLines(lines);
    
        assertContainsExpectedLines(separator);
      }
    
      public void testWriteLines_specificSeparator() throws IOException {
        String separator = "\r\n";
        sink.writeLines(lines, separator);
    
        assertContainsExpectedLines(separator);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/CharSinkTester.java

        String separator = System.getProperty("line.separator");
        sink.writeLines(lines);
    
        assertContainsExpectedLines(separator);
      }
    
      public void testWriteLines_specificSeparator() throws IOException {
        String separator = "\r\n";
        sink.writeLines(lines, separator);
    
        assertContainsExpectedLines(separator);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/CharSinkTest.java

      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
        assertThat(sink.getString()).isEqualTo("foo\nbar\nbaz\n");
      }
    
      public void testWriteLines_withDefaultSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"));
        String separator = System.getProperty("line.separator");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/CharSinkTest.java

      }
    
      public void testWriteLines_withSpecificSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
        assertThat(sink.getString()).isEqualTo("foo\nbar\nbaz\n");
      }
    
      public void testWriteLines_withDefaultSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"));
        String separator = System.getProperty("line.separator");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  6. scripts/add_latest_release_date.py

            today = date.today().isoformat()
            lines[i] = f"## {version} ({today})\n"
            print(f"Added date: {version} ({today})")
    
            with open(RELEASE_NOTES_FILE, "w") as f:
                f.writelines(lines)
            sys.exit(0)
    
        print("No release header found")
        sys.exit(1)
    
    
    if __name__ == "__main__":
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:06:36 GMT 2026
    - 1023 bytes
    - Click Count (0)
  7. scripts/docs.py

                        permalinks.add(slug)
    
                        line = f"{hashes} {title} {{ #{slug} }}\n"
    
            updated_lines.append(line)
    
        with path.open("w", encoding="utf-8") as f:
            f.writelines(updated_lines)
    
    
    @app.command()
    def add_permalinks_pages(pages: list[Path], update_existing: bool = False) -> None:
        """
        Add or update header permalinks in specific pages of En docs.
        """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java

                prompter.showMessage(line);
            } catch (org.apache.maven.api.services.PrompterException e) {
                throw new IOException("Unable to prompt", e);
            }
        }
    
        @Override
        public void writeLine(String line) throws IOException {
            try {
                prompter.showMessage(line + System.lineSeparator());
            } catch (org.apache.maven.api.services.PrompterException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:48:41 GMT 2025
    - 5.2K bytes
    - Click Count (0)
Back to Top