Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for AsCharSink (0.2 sec)

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

      /**
       * Returns a {@link CharSink} view of this {@code ByteSink} that writes characters to this sink as
       * bytes encoded with the given {@link Charset charset}.
       */
      public CharSink asCharSink(Charset charset) {
        return new AsCharSink(charset);
      }
    
      /**
       * Opens a new {@link OutputStream} for writing to this sink. This method returns a new,
       * independent stream each time it is called.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

            try {
              writer.write(initialString);
            } finally {
              writer.close();
            }
            return Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
          }
          return Files.asCharSink(file, Charsets.UTF_8);
        }
    
        @Override
        public String getExpected(String string) {
          checkNotNull(string);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/SourceSinkFactories.java

            try {
              writer.write(initialString);
            } finally {
              writer.close();
            }
            return Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
          }
          return Files.asCharSink(file, Charsets.UTF_8);
        }
    
        @Override
        public String getExpected(String string) {
          checkNotNull(string);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  4. 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;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K 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);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        CharSinkFactory charSinkFactory = SourceSinkFactories.asCharSinkFactory(factory);
        suite.addTest(
            CharSinkTester.suiteForString(
                name + ".asCharSink[Charset]", charSinkFactory, string, desc));
        return suite;
      }
    
      private static TestSuite suiteForBytes(
          String name, ByteSinkFactory factory, String desc, byte[] bytes) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSinkTester.java

        CharSinkFactory charSinkFactory = SourceSinkFactories.asCharSinkFactory(factory);
        suite.addTest(
            CharSinkTester.suiteForString(
                name + ".asCharSink[Charset]", charSinkFactory, string, desc));
        return suite;
      }
    
      private static TestSuite suiteForBytes(
          String name, ByteSinkFactory factory, String desc, byte[] bytes) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  9. 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;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  10. 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;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top