Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for skip (0.14 sec)

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

        assertFullyRead(reader);
    
        // skip fully
        reader = new CharSequenceReader(charSequence);
        assertEquals(expected.length(), reader.skip(Long.MAX_VALUE));
        assertFullyRead(reader);
    
        // skip 5 and read the rest
        if (expected.length() > 5) {
          reader = new CharSequenceReader(charSequence);
          assertEquals(5, reader.skip(5));
    
          buf = new char[expected.length() - 5];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(set, 2)));
        assertEquals("[c, d, e]", skip(set, 2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = newArrayList("a", "b", "c", "d", "e");
        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(list, 2)));
        assertEquals("[c, d, e]", skip(list, 2).toString());
      }
    
      public void testSkip_pastEnd() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertFullyRead(reader);
    
        // skip fully
        reader = new CharSequenceReader(charSequence);
        assertEquals(expected.length(), reader.skip(Long.MAX_VALUE));
        assertFullyRead(reader);
    
        // skip 5 and read the rest
        if (expected.length() > 5) {
          reader = new CharSequenceReader(charSequence);
          assertEquals(5, reader.skip(5));
    
          buf = new char[expected.length() - 5];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

              // is smaller.
              buf = new byte[skip];
            }
            if ((skipped = in.read(buf, 0, skip)) == -1) {
              // Reached EOF
              break;
            }
          }
    
          totalSkipped += skipped;
        }
    
        return totalSkipped;
      }
    
      /**
       * Attempts to skip up to {@code n} bytes from the given input stream, but not more than {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      /** Stream that will skip a maximum number of bytes at a time. */
      private static class SlowSkipper extends FilterInputStream {
        private final long max;
    
        SlowSkipper(InputStream in, long max) {
          super(in);
          this.max = max;
        }
    
        @Override
        public long skip(long n) throws IOException {
          return super.skip(Math.min(max, n));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testSkip() throws IOException {
        assertEquals(10, counter.skip(10));
        assertEquals(10, counter.getCount());
      }
    
      public void testSkipEOF() throws IOException {
        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @CanIgnoreReturnValue // to skip some bytes
      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/NodeVisitor.java

        /**
         * Starts the visit to the specified dependency node.
         *
         * @param node the dependency node to visit
         * @return <code>true</code> to visit the specified dependency node's children, <code>false</code> to skip the
         *         specified dependency node's children and proceed to its next sibling
         */
        boolean enter(@Nonnull Node node);
    
        /**
         * Ends the visit to the specified dependency node.
         *
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals("[c, d, e]", FluentIterable.from(set).skip(2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = Lists.newArrayList("a", "b", "c", "d", "e");
        assertEquals(
            Lists.newArrayList("c", "d", "e"), Lists.newArrayList(FluentIterable.from(list).skip(2)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/MultiInputStream.java

          advance();
        }
        return -1;
      }
    
      @Override
      public long skip(long n) throws IOException {
        if (in == null || n <= 0) {
          return 0;
        }
        long result = in.skip(n);
        if (result != 0) {
          return result;
        }
        if (read() == -1) {
          return 0;
        }
        return 1 + in.skip(n - 1);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top