Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for AsCharSink (0.07 sec)

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

     *       doing something and finally closing the writer that was opened.
     * </ul>
     *
     * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset
     * character encoding} using {@link ByteSink#asCharSink(Charset)}. Characters written to the
     * resulting {@code CharSink} will written to the {@code ByteSink} as encoded bytes.
     *
     * @since 14.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/io/MoreFiles.java

       * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} and {@link StandardOpenOption#WRITE
       * WRITE} options.
       */
      public static CharSink asCharSink(Path path, Charset charset, OpenOption... options) {
        return asByteSink(path, options).asCharSink(charset);
      }
    
      /**
       * Returns an immutable list of paths to the files contained in the given directory.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/MoreFiles.java

       * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} and {@link StandardOpenOption#WRITE
       * WRITE} options.
       */
      public static CharSink asCharSink(Path path, Charset charset, OpenOption... options) {
        return asByteSink(path, options).asCharSink(charset);
      }
    
      /**
       * Returns an immutable list of paths to the files contained in the given directory.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top