Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for CharSource (0.17 sec)

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

        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        Reader joinedReader = CharSource.concat(source, source).openStream();
    
        String expectedString = testString + testString;
        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
      private static CharSource newCharSource(final String text) {
        return new CharSource() {
          @Override
          public Reader openStream() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MultiReaderTest.java

        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        Reader joinedReader = CharSource.concat(source, source).openStream();
    
        String expectedString = testString + testString;
        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
      private static CharSource newCharSource(final String text) {
        return new CharSource() {
          @Override
          public Reader openStream() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSourceTester.java

     * A generator of {@code TestSuite} instances for testing {@code CharSource} implementations.
     * Generates tests of all methods on a {@code CharSource} given various inputs the source is
     * expected to contain.
     *
     * @author Colin Decker
     */
    @AndroidIncompatible // TODO(b/230620681): Make this available (even though we won't run it).
    public class CharSourceTester extends SourceSinkTester<CharSource, String, CharSourceFactory> {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/package-info.java

     * Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
     * and files.
     *
     * <p>At the core of this package are the Source/Sink types: {@link ByteSource ByteSource}, {@link
     * CharSource CharSource}, {@link ByteSink ByteSink} and {@link CharSink CharSink}. They are
     * factories for I/O streams that provide many convenience methods that handle both opening and
     * closing streams for you.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/SourceSinkFactory.java

      /** Factory for {@link ByteSink} instances. */
      public interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {}
    
      /** Factory for {@link CharSource} instances. */
      public interface CharSourceFactory extends SourceFactory<CharSource, String> {}
    
      /** Factory for {@link CharSink} instances. */
      public interface CharSinkFactory extends SinkFactory<CharSink, String> {}
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharSourceTester.java

     * A generator of {@code TestSuite} instances for testing {@code CharSource} implementations.
     * Generates tests of all methods on a {@code CharSource} given various inputs the source is
     * expected to contain.
     *
     * @author Colin Decker
     */
    @AndroidIncompatible // TODO(b/230620681): Make this available (even though we won't run it).
    public class CharSourceTester extends SourceSinkTester<CharSource, String, CharSourceFactory> {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MultiReader.java

     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    class MultiReader extends Reader {
      private final Iterator<? extends CharSource> it;
      @CheckForNull private Reader current;
    
      MultiReader(Iterator<? extends CharSource> readers) throws IOException {
        this.it = readers;
        advance();
      }
    
      /** Closes the current reader and opens the next one, if any. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.4K bytes
    - Viewed (2)
  8. guava-tests/test/com/google/common/io/TestCharSource.java

    import java.io.InputStreamReader;
    import java.io.Reader;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
        this.byteSource = new TestByteSource(content.getBytes(UTF_8), options);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Nov 09 21:39:24 GMT 2012
    - 1.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/SourceSinkFactory.java

      /** Factory for {@link ByteSink} instances. */
      public interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {}
    
      /** Factory for {@link CharSource} instances. */
      public interface CharSourceFactory extends SourceFactory<CharSource, String> {}
    
      /** Factory for {@link CharSink} instances. */
      public interface CharSinkFactory extends SinkFactory<CharSink, String> {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/TestCharSource.java

    import java.io.InputStreamReader;
    import java.io.Reader;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
        this.byteSource = new TestByteSource(content.getBytes(UTF_8), options);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 1.4K bytes
    - Viewed (0)
Back to top