Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CharSource (0.09 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/io/MoreFiles.java

          try (SeekableByteChannel channel = Files.newByteChannel(path, options)) {
            return ByteStreams.toByteArray(Channels.newInputStream(channel), channel.size());
          }
        }
    
        @Override
        public CharSource asCharSource(Charset charset) {
          if (options.length == 0) {
            // If no OpenOptions were passed, delegate to Files.lines, which could have performance
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/MoreFiles.java

          try (SeekableByteChannel channel = Files.newByteChannel(path, options)) {
            return ByteStreams.toByteArray(Channels.newInputStream(channel), channel.size());
          }
        }
    
        @Override
        public CharSource asCharSource(Charset charset) {
          if (options.length == 0) {
            // If no OpenOptions were passed, delegate to Files.lines, which could have performance
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top