Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AppendableWriter (0.12 sec)

  1. guava-tests/test/com/google/common/io/AppendableWriterTest.java

        Writer writer = new AppendableWriter(builder);
    
        writer.append("Hello,");
        writer.append(' ');
        writer.append("The World Wide Web", 4, 9);
        writer.append("!");
    
        assertEquals("Hello, World!", builder.toString());
      }
    
      public void testCloseFlush() throws IOException {
        SpyAppendable spy = new SpyAppendable();
        Writer writer = new AppendableWriter(spy);
    
        writer.write("Hello");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharStreams.java

       */
      public static Writer asWriter(Appendable target) {
        if (target instanceof Writer) {
          return (Writer) target;
        }
        return new AppendableWriter(target);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top