Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for SourceSinkFactories (0.13 sec)

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

    import java.util.logging.Logger;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * {@link SourceSinkFactory} implementations.
     *
     * @author Colin Decker
     */
    public class SourceSinkFactories {
    
      private SourceSinkFactories() {}
    
      public static CharSourceFactory stringCharSourceFactory() {
        return new StringSourceFactory();
      }
    
      public static ByteSourceFactory byteArraySourceFactory() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

    import java.util.logging.Logger;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * {@link SourceSinkFactory} implementations.
     *
     * @author Colin Decker
     */
    public class SourceSinkFactories {
    
      private SourceSinkFactories() {}
    
      public static CharSourceFactory stringCharSourceFactory() {
        return new StringSourceFactory();
      }
    
      public static ByteSourceFactory byteArraySourceFactory() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

            ByteSourceTester.tests(
                "Files.asByteSource[File]", SourceSinkFactories.fileByteSourceFactory(), true));
        suite.addTest(
            ByteSinkTester.tests("Files.asByteSink[File]", SourceSinkFactories.fileByteSinkFactory()));
        suite.addTest(
            ByteSinkTester.tests(
                "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory()));
        suite.addTest(
            CharSourceTester.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)
  4. guava-tests/test/com/google/common/io/ByteSourceTester.java

          ByteSourceFactory sliced = SourceSinkFactories.asSlicedByteSourceFactory(factory, off, len);
          suite.addTest(suiteForBytes(sliced, bytes, name + ".slice[long, long]", desc, false));
    
          // test a slice() of the ByteSource starting at a random offset with a length of
          // Long.MAX_VALUE
          ByteSourceFactory slicedLongMaxValue =
              SourceSinkFactories.asSlicedByteSourceFactory(factory, off, Long.MAX_VALUE);
    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/MoreFilesTest.java

                "MoreFiles.asByteSource[Path]", SourceSinkFactories.pathByteSourceFactory(), true));
        suite.addTest(
            ByteSinkTester.tests(
                "MoreFiles.asByteSink[Path]", SourceSinkFactories.pathByteSinkFactory()));
        suite.addTest(
            ByteSinkTester.tests(
                "MoreFiles.asByteSink[Path, APPEND]",
                SourceSinkFactories.appendingPathByteSinkFactory()));
        suite.addTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        TestSuite suite = new TestSuite();
        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;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FilesTest.java

            ByteSourceTester.tests(
                "Files.asByteSource[File]", SourceSinkFactories.fileByteSourceFactory(), true));
        suite.addTest(
            ByteSinkTester.tests("Files.asByteSink[File]", SourceSinkFactories.fileByteSinkFactory()));
        suite.addTest(
            ByteSinkTester.tests(
                "Files.asByteSink[File, APPEND]", SourceSinkFactories.appendingFileByteSinkFactory()));
        suite.addTest(
            CharSourceTester.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. guava-tests/test/com/google/common/io/CharSourceTest.java

          suite.addTest(
              CharSourceTester.tests(
                  "CharSource.wrap[CharSequence]",
                  SourceSinkFactories.stringCharSourceFactory(),
                  asByteSource));
          suite.addTest(
              CharSourceTester.tests(
                  "CharSource.empty[]", SourceSinkFactories.emptyCharSourceFactory(), asByteSource));
        }
        suite.addTestSuite(CharSourceTest.class);
        return suite;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ResourcesTest.java

        TestSuite suite = new TestSuite();
        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;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ByteSourceTest.java

          suite.addTest(
              ByteSourceTester.tests(
                  "ByteSource.wrap[byte[]]",
                  SourceSinkFactories.byteArraySourceFactory(),
                  asCharSource));
          suite.addTest(
              ByteSourceTester.tests(
                  "ByteSource.empty[]", SourceSinkFactories.emptyByteSourceFactory(), asCharSource));
        }
        suite.addTestSuite(ByteSourceTest.class);
        return suite;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top