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

123

/libcore/luni/src/main/java/libcore/io/
H A DBufferIterator.java34 public abstract void skip(int byteCount); method in class:BufferIterator
/libcore/luni/src/main/java/java/io/
H A DObjectInput.java110 public long skip(long byteCount) throws IOException; method in interface:ObjectInput
H A DFilterInputStream.java95 * @see #skip(long)
170 public long skip(long byteCount) throws IOException { method in class:FilterInputStream
171 return in.skip(byteCount);
H A DFilterReader.java92 * @see #skip(long)
163 * {@code read()} and {@code skip()} will occur from this new location. If
184 * default implementation is to skip characters in the filtered reader.
195 public long skip(long charCount) throws IOException { method in class:FilterReader
197 return in.skip(charCount);
H A DPushbackReader.java352 public long skip(long charCount) throws IOException { method in class:PushbackReader
370 inSkipped = in.skip(requiredFromIn);
372 inSkipped = in.skip(charCount);
H A DDataInputStream.java211 * the number of bytes to skip.
220 long skip;
221 while (skipped < count && (skip = in.skip(count - skipped)) != 0) {
222 skipped += skip;
H A DInputStream.java84 * read or skip will actually read or skip that many bytes: they may read or skip fewer.
225 * <p>Note the "at most" in the description of this method: this method may choose to skip
231 * @param byteCount the number of bytes to skip.
236 public long skip(long byteCount) throws IOException { method in class:InputStream
H A DFileInputStream.java183 public long skip(long byteCount) throws IOException { method in class:FileInputStream
195 return super.skip(byteCount);
H A DPushbackInputStream.java219 public long skip(long byteCount) throws IOException { method in class:PushbackInputStream
232 numSkipped += in.skip(byteCount - numSkipped);
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLInputStream.java77 public long skip(long byteCount) throws IOException { method in class:FtpURLInputStream
78 return is.skip(byteCount);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldBufferedReaderTest.java82 br.skip(500);
84 br.skip(250);
95 br.skip(500);
109 in.skip(6);
121 in.skip(6);
123 in.skip(7);
263 br.skip(-1);
269 br.skip(500);
272 assertTrue("Test 2: Failed to set skip properly.",
279 br.skip(
[all...]
H A DOldLineNumberInputStreamTest.java113 lnis.skip(4);
121 lnis.skip(100);
150 long skipped = lnis.skip(4);
158 lnis.skip(4);
H A DOldLineNumberReaderTest.java34 lnr.skip(80);
164 long skipped = lnr.skip(80);
168 assertTrue("Test 2: Failed to skip to correct position.",
172 lnr.skip(-1);
180 lnr.skip(1);
H A DFileInputStreamTest.java75 fis.skip(SKIP_SIZE);
126 fis2.skip(1);
151 fis1.skip(1);
182 fis.skip(1);
188 fis.skip(0);
H A DOldCharArrayReaderTest.java98 cr.skip(5L);
197 cr.skip(1000);
221 cr.skip(5L);
240 skipped = cr.skip(5L);
241 assertEquals("Test 1: Failed to skip correct number of chars;",
248 cr.skip(1);
H A DOldPushbackInputStreamTest.java171 tobj.skip(6);
173 tobj.skip(1000000);
174 tobj.skip(1000000);
177 tobj.skip(1);
183 // Test for method long java.io.PushbackInputStream.skip(long)
186 pis.skip(50);
191 pis.skip(25);
311 tobj.skip(2);
H A DOldInputStreamTest.java228 // Test 1: Check that skip(long) just returns 0 if called with a
230 assertEquals("Test 1:", is.skip(-42), 0);
239 // number of bytes to skip.
241 is.skip(17), 17);
253 is.skip(ref.length), ref.length - 39);
257 // skip(long) should return 0.
259 assertEquals("Test 5:", is.skip(10), 0);
H A DOldFilterReaderTest.java72 public long skip(long count) throws IOException { method in class:OldFilterReaderTest.MockReader
158 fr.skip(10);
159 assertTrue("skip(long) has not been called.", called);
H A DOldPushbackReaderTest.java284 * java.io.PushbackReader#skip(long)
290 tobj.skip(6);
291 tobj.skip(1000000);
292 tobj.skip(1000000);
295 tobj.skip(1);
355 tobj.skip(2);
H A DOldByteArrayInputStreamTest.java107 is.skip(3000);
142 is.skip(50);
197 // Test for method long java.io.ByteArrayInputStream.skip(long)
200 is.skip(100);
202 assertTrue("Failed to skip to correct position", new String(buf1,
205 fail("Exception during skip test : " + e.getMessage());
H A DOldReaderTest.java101 simple.skip(5);
106 simple.skip(1);
/libcore/luni/src/main/java/java/util/zip/
H A DCheckedInputStream.java109 * @param byteCount the number of bytes to skip.
114 public long skip(long byteCount) throws IOException { method in class:CheckedInputStream
H A DInflaterInputStream.java195 is.skip(cnt);
207 * @param byteCount the number of bytes to skip.
213 public long skip(long byteCount) throws IOException { method in class:InflaterInputStream
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherInputStream1Test.java151 int skip = 2;
152 int ind = skip; // index into the data array (to check the got data)
154 cis.read(null, 0, skip);
155 int got = skip + cis.read(result, 0, 1); // the number of got bytes
178 * skip(long n) method testing. Tests that the method correctly skips the
188 int skipped = (int) cis.skip(2);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldScannerTest.java399 s.skip((String) null);
408 s.skip(Pattern.compile("\\p{Lower}"));
421 s.skip(Pattern.compile("\\p{Digit}"));
426 s.skip(Pattern.compile("\\p{Digit}+"));
433 s.skip(Pattern.compile("test"));
442 s.skip(Pattern.compile("\\p{Digit}{4}"));
453 s.skip(Pattern.compile("\\p{Digit}{3}\\p{Lower}"));
460 s.skip((Pattern) null);
472 s.skip(Pattern.compile("\\p{Lower}+\\p{Digit}"));
483 s.skip(Patter
[all...]

Completed in 147 milliseconds

123