/openjdk10/jdk/test/java/io/StringReader/ |
H A D | Skip.java | 26 * @summary Test StringReader.skip with negative param 36 if (in.skip(3) != 3) 37 throw new RuntimeException("skip(3) failed"); 39 throw new RuntimeException("post skip read failure"); 42 if (in.skip(-2) != -2) 43 throw new RuntimeException("skip(-2) failed"); 45 throw new RuntimeException("read failed after negative skip"); 47 // Attempt to skip backward past the beginning and read 48 if (in.skip(-6) != -3) 49 throw new RuntimeException("skip( [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/stream/ |
H A D | SliceOps.java | 44 * skip, and the number of elements to limit. 47 * @param skip the number of elements to skip, assumed to be >= 0 52 private static long calcSize(long size, long skip, long limit) { argument 53 return size >= 0 ? Math.max(-1, Math.min(size - skip, limit)) : -1; 59 * @param skip the number of elements to skip, assumed to be >= 0 64 private static long calcSliceFence(long skip, long limit) { argument 65 long sliceFence = limit >= 0 ? skip + limit : Long.MAX_VALUE; 78 long skip, lon 76 sliceSpliterator(StreamShape shape, Spliterator<P_IN> s, long skip, long limit) argument 109 makeRef(AbstractPipeline<?, T, ?> upstream, long skip, long limit) argument 225 makeInt(AbstractPipeline<?, Integer, ?> upstream, long skip, long limit) argument 334 makeLong(AbstractPipeline<?, Long, ?> upstream, long skip, long limit) argument 443 makeDouble(AbstractPipeline<?, Double, ?> upstream, long skip, long limit) argument [all...] |
/openjdk10/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | SliceOpTest.java | 59 assertCountSum(countTo(0).stream().skip(0), 0, 0); 60 assertCountSum(countTo(0).stream().skip(4), 0, 0); 61 assertCountSum(countTo(4).stream().skip(4), 0, 0); 62 assertCountSum(countTo(4).stream().skip(2), 2, 7); 63 assertCountSum(countTo(4).stream().skip(0), 4, 10); 65 assertCountSum(countTo(0).parallelStream().skip(0), 0, 0); 66 assertCountSum(countTo(0).parallelStream().skip(4), 0, 0); 67 assertCountSum(countTo(4).parallelStream().skip(4), 0, 0); 68 assertCountSum(countTo(4).parallelStream().skip(2), 2, 7); 69 assertCountSum(countTo(4).parallelStream().skip( 145 sliceSize(int dataSize, int skip, int limit) argument 152 sliceSize(int dataSize, int skip) argument [all...] |
H A D | IntSliceOpTest.java | 47 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0); 48 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0); 49 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0); 50 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7); 51 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10); 53 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0); 54 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0); 55 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0); 56 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7); 57 assertCountSum(IntStream.range(1, 5).parallel().skip( 114 sliceSize(int dataSize, int skip, int limit) argument 121 sliceSize(int dataSize, int skip) argument [all...] |
/openjdk10/jdk/test/java/io/PushbackReader/ |
H A D | Skip.java | 26 * @summary check skip method after pushing data back 45 // Check skip without unread chars present 46 pr.skip(1); 50 // Check skip over and beyond unread chars 51 pr.skip(4); 56 // Check skip within unread chars 57 pr.skip(1); 60 // Check skip after unread chars have been used 61 pr.skip(3);
|
/openjdk10/jdk/test/java/util/zip/ZipInputStream/ |
H A D | Skip.java | 26 @summary Make sure ZipInputStream.skip(n) will check 39 z.skip(-1);
|
/openjdk10/jdk/test/java/io/CharArrayReader/ |
H A D | OverflowInSkip.java | 39 long smallSkip = car.skip(small); 41 throw new Exception("Expected to skip " + small 45 long bigSkip = car.skip(big); 47 throw new Exception("Expected to skip " + expSkip
|
/openjdk10/jdk/test/java/io/LineNumberReader/ |
H A D | Skip.java | 26 * @summary Check if LineNumberReader will skip right number of characters and 45 reader.skip(-10); 53 throw new Exception("Failed test: Negative value for skip()"); 55 long realnum = reader.skip(nchars); 59 throw new Exception("Failed test: Should skip 164, really skipped "
|
/openjdk10/jdk/test/java/io/ObjectInputStream/ |
H A D | PeekInputStreamTest.java | 34 * @summary verifies java.io.ObjectInputStream.PeekInputStream.skip works 45 if (pin.skip(1) != 1 || pin.read() != 2) 50 if (pin1.skip(1) != 1 || pin1.read() != 2) 55 if (pin2.skip(0) != 0 || pin2.read() != 1) 60 if (pin3.skip(2) != 2 || pin3.read() != 3) 65 if (pin4.skip(3) != 3 || pin4.read() != 4) 70 if (pin5.skip(16) != 4 || pin5.read() != -1)
|
/openjdk10/jdk/test/java/util/stream/boottest/java.base/java/util/stream/ |
H A D | SliceSpliteratorTest.java | 64 void test(int size, int skip, int limit); argument 74 SliceTester r = (size, skip, limit) -> { 80 return new StreamSpliterators.SliceSpliterator.OfRef<>(s, skip, limit); 87 SliceTester r = (size, skip, limit) -> { 93 return new StreamSpliterators.SliceSpliterator.OfInt(s, skip, limit); 100 SliceTester r = (size, skip, limit) -> { 106 return new StreamSpliterators.SliceSpliterator.OfLong(s, skip, limit); 113 SliceTester r = (size, skip, limit) -> { 119 return new StreamSpliterators.SliceSpliterator.OfDouble(s, skip, limit); 129 SliceTester r = (size, skip, limi [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/io/ |
H A D | FilterReader.java | 83 public long skip(long n) throws IOException { method in class:FilterReader 84 return in.skip(n);
|
H A D | ObjectInput.java | 90 public long skip(long n) throws IOException; method in interface:ObjectInput
|
H A D | FilterInputStream.java | 138 * input stream. The <code>skip</code> method may, for a variety of 143 * This method simply performs <code>in.skip(n)</code>. 147 * @throws IOException if {@code in.skip(n)} throws an IOException. 149 public long skip(long n) throws IOException { method in class:FilterInputStream 150 return in.skip(n); 157 * the same thread or another thread. A single read or skip of this 158 * many bytes will not block, but may read or skip fewer bytes.
|
/openjdk10/jdk/test/java/lang/ProcessBuilder/ |
H A D | SkipTest.java | 28 * @summary verify skip method of Process Input Stream 56 * Verify the data expected is received mixing reads and skip. 61 // skip() method works perfectly, partially obscuring the bug. Only when the 62 // BufferedInputStream's buffer is drained, and it passes the skip() call to 65 long n = in.skip(-1); 67 throw new AssertionError("skip(-1) should return 0"); 69 n = in.skip(0); 71 throw new AssertionError("skip(0) should return 0"); 89 remaining -= in.skip(remaining); 92 n = in.skip( [all...] |
/openjdk10/jdk/test/sun/tools/java/ |
H A D | CFCTest.java | 133 private void skip(int n) throws IOException { method in class:CFCTest.ClassConstantChecker 140 skip(8); // magic, version 153 skip(8); 157 skip(2); 165 skip(4); 169 skip(3); 172 skip(2); 175 skip(4);
|
/openjdk10/jdk/test/java/io/BufferedReader/ |
H A D | SkipNegative.java | 40 long actual = BR.skip(nchars);
|
/openjdk10/jdk/test/java/io/Reader/ |
H A D | SkipNegative.java | 40 long actual = fr.skip(nchars);
|
H A D | Skip.java | 26 @summary Test if skip works correctly 40 long actual = fr.skip(nchars); 44 ("Should skip " + nchars + ", but skipped " +actual+" chars");
|
/openjdk10/jdk/test/java/io/FileInputStream/ |
H A D | LargeFileAvailable.java | 85 long skip = is.skip(toSkip); 86 if (skip != toSkip) { 87 throw new RuntimeException("skip() returns " + skip 90 long remaining = avail - skip; 95 System.out.println("Skipped " + skip + " bytes, available() returns " 101 return skip;
|
H A D | NegativeAvailable.java | 78 long skip = fis.skip(toSkip); 79 if (skip != toSkip) { 80 throw new RuntimeException("skip() returns " + skip 91 System.out.println("Skipped " + skip + " bytes "
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/parser/ |
H A D | Lexer.java | 204 * avoid reading ahead unnecessarily when we skip the function bodies. 340 skip(1); 342 skip(1); 345 skip(1); 365 skip(1); 443 skip(1); 461 skip(2); 470 skip(1); 477 skip(2); 480 // If end of line handle else skip characte [all...] |
/openjdk10/jdk/test/javax/management/query/ |
H A D | QueryExpStringTest.java | 187 if (skip(ss, "(")) 190 if (skip(ss, "not (")) { 192 if (!skip(ss, ")")) 199 if (skip(ss, " like ")) { 210 if (skip(ss, " in (")) { 212 if (!skip(ss, ")")) { 215 } while (skip(ss, ", ")); 216 if (!skip(ss, ")")) 238 if (skip(ss, ") and (")) 240 else if (skip(s 421 skip(String[] ss, String skip) argument [all...] |
/openjdk10/jdk/test/java/io/ByteArrayInputStream/ |
H A D | Skip.java | 27 * @summary check for ByteArrayInputStream.skip 39 "\nNumber of bytes to skip = " + toskip + 46 long n = in.skip(avail); 51 long skipped = in.skip(toskip); 63 /* test for skip */ 67 /* test for negative skip */ 70 /* check for skip after EOF */ 73 /* check for skip beyond EOF starting from before EOF */ 76 /* check for skip if the pos + toskip causes integer overflow */
|
/openjdk10/jdk/test/java/io/BufferedInputStream/ |
H A D | SkipTest.java | 27 * @summary Test bufferedinputstream for data loss during skip 45 // set up to contain only some of the bytes to skip 50 // the skip must be longer than the buffer size 53 skipped += in.skip(15-skipped); 62 throw new RuntimeException("BufferedInputStream skip lost data"); 75 public long skip(long n) { method in class:DataSupplier
|
/openjdk10/test/lib/jdk/test/lib/hprof/parser/ |
H A D | PositionInputStream.java | 63 public long skip(long n) throws IOException { method in class:PositionInputStream 64 long res = super.skip(n);
|