Searched refs:skip (Results 1 - 25 of 180) sorted by relevance

12345678

/openjdk7/jdk/test/java/io/StringReader/
H A DSkip.java26 * @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...]
/openjdk7/jdk/test/java/io/PushbackReader/
H A DSkip.java26 * @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);
/openjdk7/jdk/test/java/util/zip/ZipInputStream/
H A DSkip.java26 @summary Make sure ZipInputStream.skip(n) will check
39 z.skip(-1);
/openjdk7/jdk/test/java/io/LineNumberReader/
H A DSkip.java26 * @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 "
/openjdk7/jdk/test/java/io/FileInputStream/
H A DLargeFileAvailable.java77 long skip = is.skip(toSkip);
78 if (skip != toSkip) {
79 throw new RuntimeException("skip() returns " + skip
82 long remaining = avail - skip;
87 System.out.println("Skipped " + skip + " bytes "
94 return skip;
/openjdk7/jdk/src/share/classes/java/io/
H A DFilterReader.java82 public long skip(long n) throws IOException { method in class:FilterReader
83 return in.skip(n);
H A DObjectInput.java90 public long skip(long n) throws IOException; method in interface:ObjectInput
H A DFilterInputStream.java138 * input stream. The <code>skip</code> method may, for a variety of
143 * This method simply performs <code>in.skip(n)</code>.
150 public long skip(long n) throws IOException { method in class:FilterInputStream
151 return in.skip(n);
158 * the same thread or another thread. A single read or skip of this
159 * many bytes will not block, but may read or skip fewer bytes.
/openjdk7/jdk/test/java/io/BufferedReader/
H A DSkipNegative.java40 long actual = BR.skip(nchars);
/openjdk7/jdk/test/java/io/Reader/
H A DSkip.java26 @summary Test if skip works correctly
40 long actual = fr.skip(nchars);
44 ("Should skip " + nchars + ", but skipped " +actual+" chars");
H A DSkipNegative.java40 long actual = fr.skip(nchars);
/openjdk7/langtools/test/tools/javac/
H A DT6705935.java59 skip++;
81 if (skip == 0)
84 System.out.println(test + " files found, " + skip + " files skipped");
86 if (test == skip)
97 private int skip; field in class:T6705935
/openjdk7/jdk/test/javax/management/query/
H A DQueryExpStringTest.java186 if (skip(ss, "("))
189 if (skip(ss, "not (")) {
191 if (!skip(ss, ")"))
198 if (skip(ss, " like ")) {
209 if (skip(ss, " in (")) {
211 if (!skip(ss, ")")) {
214 } while (skip(ss, ", "));
215 if (!skip(ss, ")"))
237 if (skip(ss, ") and ("))
239 else if (skip(s
420 skip(String[] ss, String skip) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/parser/
H A DPositionInputStream.java63 public long skip(long n) throws IOException { method in class:PositionInputStream
64 long res = super.skip(n);
/openjdk7/jdk/test/java/io/BufferedInputStream/
H A DSkipTest.java27 * @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
/openjdk7/jdk/test/java/io/ByteArrayInputStream/
H A DSkip.java27 * @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 */
/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DSkipEOL.java27 @summary Test for correct CR/LF handling in LineNumberInputStream.skip
41 long skipped = in.skip(3); // skip 3 bytes
44 RuntimeException("LineNumberInputStream.skip - " +
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/
H A DSkipSiblings.java45 static boolean skip(Path path) { method in class:SkipSiblings
61 if (skip(dir))
68 if (skip(file))
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DByteBufferInputStream.java111 public long skip(long n) throws IOException { method in class:ByteBufferInputStream
114 throw new IOException("skip on a closed InputStream");
126 int skip = Math.min(bb.remaining(), nInt);
128 bb.position(bb.position() + skip);
/openjdk7/hotspot/src/share/vm/gc_implementation/shared/
H A DvmGCOperations.cpp85 // we want to skip this GC attempt altogether, without doing a futile
88 bool skip = (_gc_count_before != Universe::heap()->total_collections()); local
89 if (_full && skip) {
90 skip = (_full_gc_count_before != Universe::heap()->total_full_collections());
92 if (!skip && GC_locker::is_active_and_needs_gc()) {
93 skip = Universe::heap()->is_maximal_no_gc();
94 assert(!(skip && (_gc_cause == GCCause::_gc_locker)),
97 return skip;
112 // skip collection
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DManifestEntryVerifier.java70 private boolean skip = true; field in class:ManifestEntryVerifier
102 skip = true;
146 skip = false;
160 if (skip) return;
171 if (skip) return;
198 if (skip) {
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/util/
H A DTeeInputStream.java87 public long skip(long n) throws IOException { method in class:TeeInputStream
88 return source.skip(n);
/openjdk7/jdk/test/java/io/PushbackInputStream/
H A DSkip.java26 @summary Test for correct implementation of PushbackInputStream.skip
41 in.skip(2);
53 in.skip(2);
/openjdk7/jdk/src/share/classes/sun/rmi/log/
H A DLogInputStream.java99 public long skip(long n) throws IOException { method in class:LogInputStream
101 throw new IOException("Too many bytes to skip - " + n);
105 n = in.skip(n);
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DHttpSendInputStream.java92 public long skip(long n) throws IOException method in class:HttpSendInputStream
98 return in.skip(n);

Completed in 46 milliseconds

12345678