Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava/src/com/google/common/io/MultiInputStream.java

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class MultiInputStream extends InputStream {
    
      private Iterator<? extends ByteSource> it;
      @CheckForNull private InputStream in;
    
      /**
       * Creates a new instance.
       *
       * @param it an iterator of I/O suppliers that will provide each substream
       */
      public MultiInputStream(Iterator<? extends ByteSource> it) throws IOException {
        this.it = checkNotNull(it);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertEquals(20, total);
      }
    
      @SuppressWarnings("CheckReturnValue") // these calls to skip always return 0
      public void testSkip() throws Exception {
        MultiInputStream multi =
            new MultiInputStream(
                Collections.singleton(
                        new ByteSource() {
                          @Override
                          public InputStream openStream() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertEquals(20, total);
      }
    
      @SuppressWarnings("CheckReturnValue") // these calls to skip always return 0
      public void testSkip() throws Exception {
        MultiInputStream multi =
            new MultiInputStream(
                Collections.singleton(
                        new ByteSource() {
                          @Override
                          public InputStream openStream() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteSource.java

        ConcatenatedByteSource(Iterable<? extends ByteSource> sources) {
          this.sources = checkNotNull(sources);
        }
    
        @Override
        public InputStream openStream() throws IOException {
          return new MultiInputStream(sources.iterator());
        }
    
        @Override
        public boolean isEmpty() throws IOException {
          for (ByteSource source : sources) {
            if (!source.isEmpty()) {
              return false;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top