- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for CharSource (0.1 sec)
-
guava/src/com/google/common/io/CharSource.java
* * @param sources the sources to concatenate * @return a {@code CharSource} containing the concatenated data * @since 15.0 */ public static CharSource concat(Iterable<? extends CharSource> sources) { return new ConcatenatedCharSource(sources); } /** * Concatenates multiple {@link CharSource} instances into a single source. Streams returned from
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 25.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
assertFalse(CharSource.concat(c1, c2, c3).isEmpty()); CharSource emptyConcat = CharSource.concat(CharSource.empty(), CharSource.empty()); assertTrue(emptyConcat.isEmpty()); } public void testConcat_infiniteIterable() throws IOException { CharSource source = CharSource.wrap("abcd"); Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source)); CharSource concatenated = CharSource.concat(cycle);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
assertFalse(CharSource.concat(c1, c2, c3).isEmpty()); CharSource emptyConcat = CharSource.concat(CharSource.empty(), CharSource.empty()); assertTrue(emptyConcat.isEmpty()); } public void testConcat_infiniteIterable() throws IOException { CharSource source = CharSource.wrap("abcd"); Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source)); CharSource concatenated = CharSource.concat(cycle);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
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> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
factory.tearDown(); } }; } private static class StringSourceFactory implements CharSourceFactory { @Override public CharSource createSource(String data) throws IOException { return CharSource.wrap(data); } @Override public String getExpected(String data) { return data; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0) -
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> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
factory.tearDown(); } }; } private static class StringSourceFactory implements CharSourceFactory { @Override public CharSource createSource(String data) throws IOException { return CharSource.wrap(data); } @Override public String getExpected(String data) { return data; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.7K bytes - Viewed (0) -
guava/src/com/google/common/io/Resources.java
@Override public String toString() { return "Resources.asByteSource(" + url + ")"; } } /** * Returns a {@link CharSource} that reads from the given URL using the given character set. * * @since 14.0 */ public static CharSource asCharSource(URL url, Charset charset) { return asByteSource(url).asCharSource(charset); } /** * Reads all bytes from a URL into a byte array.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 02 13:50:22 UTC 2024 - 7.5K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 1.4K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 1.4K bytes - Viewed (0)