Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for asCharSource (0.11 sec)

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

        suite.addTest(
            ByteSourceTester.tests(
                "Resources.asByteSource[URL]", SourceSinkFactories.urlByteSourceFactory(), true));
        suite.addTest(
            CharSourceTester.tests(
                "Resources.asCharSource[URL, Charset]",
                SourceSinkFactories.urlCharSourceFactory(),
                false));
        suite.addTestSuite(ResourcesTest.class);
        return suite;
      }
    
      public void testToString() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/MoreFiles.java

       * equivalent to providing the {@link StandardOpenOption#READ READ} option.
       */
      public static CharSource asCharSource(Path path, Charset charset, OpenOption... options) {
        return asByteSource(path, options).asCharSource(charset);
      }
    
      /**
       * Returns a view of the given {@code path} as a {@link CharSink} using the given {@code charset}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/MoreFiles.java

            // like following/not following symlinks.)
            return new AsCharSource(charset) {
              @SuppressWarnings("FilesLinesLeak") // the user needs to close it in this case
              @Override
              public Stream<String> lines() throws IOException {
                return Files.lines(path, charset);
              }
            };
          }
    
          return super.asCharSource(charset);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteSourceTester.java

        CharSourceFactory charSourceFactory = SourceSinkFactories.asCharSourceFactory(factory);
        suite.addTest(
            CharSourceTester.suiteForString(
                charSourceFactory, string, name + ".asCharSource[Charset]", desc));
        return suite;
      }
    
      static TestSuite suiteForBytes(
          ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ResourcesTest.java

        suite.addTest(
            ByteSourceTester.tests(
                "Resources.asByteSource[URL]", SourceSinkFactories.urlByteSourceFactory(), true));
        suite.addTest(
            CharSourceTester.tests(
                "Resources.asCharSource[URL, Charset]",
                SourceSinkFactories.urlCharSourceFactory(),
                false));
        suite.addTestSuite(ResourcesTest.class);
        return suite;
      }
    
      public void testToString() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

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

        suite.addTest(
            ByteSinkTester.tests(
                "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory()));
        suite.addTest(
            CharSourceTester.tests(
                "Files.asCharSource[File, Charset]",
                SourceSinkFactories.fileCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
    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. android/guava/src/com/google/common/reflect/ClassPath.java

         *     despite physically existing in the class path.
         * @since 20.0
         */
        public final CharSource asCharSource(Charset charset) {
          return Resources.asCharSource(url(), charset);
        }
    
        /** Returns the fully qualified name of the resource. Such as "com/mycomp/foo/bar.txt". */
        public final String getResourceName() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

            ByteSinkTester.tests(
                "MoreFiles.asByteSink[Path, APPEND]",
                SourceSinkFactories.appendingPathByteSinkFactory()));
        suite.addTest(
            CharSourceTester.tests(
                "MoreFiles.asCharSource[Path, Charset]",
                SourceSinkFactories.pathCharSourceFactory(),
                false));
        suite.addTest(
            CharSinkTester.tests(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top