Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for asCharSink (0.08 sec)

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

                SourceSinkFactories.pathCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
                "MoreFiles.asCharSink[Path, Charset]", SourceSinkFactories.pathCharSinkFactory()));
        suite.addTest(
            CharSinkTester.tests(
                "MoreFiles.asCharSink[Path, Charset, APPEND]",
                SourceSinkFactories.appendingPathCharSinkFactory()));
        suite.addTestSuite(MoreFilesTest.class);
        return suite;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactories.java

            try {
              writer.write(initialString);
            } finally {
              writer.close();
            }
            return Files.asCharSink(file, UTF_8, FileWriteMode.APPEND);
          }
          return Files.asCharSink(file, UTF_8);
        }
    
        @Override
        public String getExpected(String string) {
          checkNotNull(string);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Files.java

       * @throws IOException if an I/O error occurs
       * @deprecated Prefer {@code asCharSink(to, charset).write(from)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSink(to, charset).write(from)",
          imports = "com.google.common.io.Files")
      public static void write(CharSequence from, File to, Charset charset) throws IOException {
        asCharSink(to, charset).write(from);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

            try {
              writer.write(initialString);
            } finally {
              writer.close();
            }
            return Files.asCharSink(file, UTF_8, FileWriteMode.APPEND);
          }
          return Files.asCharSink(file, UTF_8);
        }
    
        @Override
        public String getExpected(String string) {
          checkNotNull(string);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

       * @throws IOException if an I/O error occurs
       * @deprecated Prefer {@code asCharSink(to, charset).write(from)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSink(to, charset).write(from)",
          imports = "com.google.common.io.Files")
      public static void write(CharSequence from, File to, Charset charset) throws IOException {
        asCharSink(to, charset).write(from);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path fooPath = fs.getPath("foo");
          Path barPath = fs.getPath("bar");
          MoreFiles.asCharSink(fooPath, UTF_8).write("foo");
          MoreFiles.asCharSink(barPath, UTF_8).write("barbar");
    
          assertThat(MoreFiles.equal(fooPath, barPath)).isFalse();
          assertThat(MoreFiles.equal(fooPath, fooPath)).isTrue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/FilesTest.java

                SourceSinkFactories.fileCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
                "Files.asCharSink[File, Charset]", SourceSinkFactories.fileCharSinkFactory()));
        suite.addTest(
            CharSinkTester.tests(
                "Files.asCharSink[File, Charset, APPEND]",
                SourceSinkFactories.appendingFileCharSinkFactory()));
        suite.addTestSuite(FilesTest.class);
        return suite;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FilesTest.java

                SourceSinkFactories.fileCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
                "Files.asCharSink[File, Charset]", SourceSinkFactories.fileCharSinkFactory()));
        suite.addTest(
            CharSinkTester.tests(
                "Files.asCharSink[File, Charset, APPEND]",
                SourceSinkFactories.appendingFileCharSinkFactory()));
        suite.addTestSuite(FilesTest.class);
        return suite;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ByteSource.class, ByteSource.empty())
              .put(CharSource.class, CharSource.empty())
              .put(ByteSink.class, NullByteSink.INSTANCE)
              .put(CharSink.class, NullByteSink.INSTANCE.asCharSink(UTF_8))
              // All collections are immutable empty. So safe for any type parameter.
              .put(Iterator.class, ImmutableSet.of().iterator())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ByteSource.class, ByteSource.empty())
              .put(CharSource.class, CharSource.empty())
              .put(ByteSink.class, NullByteSink.INSTANCE)
              .put(CharSink.class, NullByteSink.INSTANCE.asCharSink(UTF_8))
              // All collections are immutable empty. So safe for any type parameter.
              .put(Iterator.class, ImmutableSet.of().iterator())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top