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

1234

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DPasswordProtectedInputStream.java70 public long skip(long n) throws IOException { method in class:PasswordProtectedInputStream
71 long skip = super.skip(n);
72 pwdIndex += skip;
73 return skip;
H A DPositionedInputStream.java77 public long skip(long n) throws IOException { method in class:PositionedInputStream
78 long skip = in.skip(n);
79 currentPosition += skip; // Maybe currentPosition should be long ?
80 return skip;
H A DInputStreamHelper.java89 skip(count);
96 skip(available);
126 bais.skip(available);
/dalvik/libcore/luni/src/main/java/java/io/
H A DObjectInput.java107 * the number of bytes to skip.
113 public long skip(long toSkip) throws IOException; method in interface:ObjectInput
H A DFilterInputStream.java93 * @see #skip(long)
180 * the number of bytes to skip.
188 public long skip(long count) throws IOException { method in class:FilterInputStream
189 return in.skip(count);
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.
187 * the maximum number of characters to skip.
197 public long skip(long count) throws IOException { method in class:FilterReader
199 return in.skip(count);
H A DDataInputStream.java472 * the number of bytes to skip.
481 long skip;
482 while (skipped < count && (skip = in.skip(count - skipped)) != 0) {
483 skipped += skip;
H A DPushbackReader.java372 * the number of characters to skip.
379 public long skip(long count) throws IOException { method in class:PushbackReader
399 inSkipped = in.skip(requiredFromIn);
401 inSkipped = in.skip(count);
H A DByteArrayInputStream.java221 * the number of bytes to skip.
225 public synchronized long skip(long n) { method in class:ByteArrayInputStream
H A DInputStream.java70 * read or skip will actually read or skip that many bytes: they may read or skip fewer.
232 * <p>Note the "at most" in the description of this method: this method may choose to skip
238 * @param n the number of bytes to skip.
243 public long skip(long n) throws IOException { method in class:InputStream
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DPushbackReaderTest.java414 * @tests java.io.PushbackReader#skip(long)
418 method = "skip",
425 tobj.skip(6);
426 tobj.skip(1000000);
427 tobj.skip(1000000);
430 tobj.skip(1);
459 numSkipped = pReader2.skip(3);
462 numSkipped += pReader2.skip(10);
463 numSkipped += pReader2.skip(10);
464 numSkipped += pReader2.skip(1
[all...]
H A DStringBufferInputStreamTest.java77 sbis.skip(6);
140 long s = sbis.skip(6);
141 assertEquals("Unable to skip correct umber of chars", 6, s);
147 * @tests java.io.StringBufferInputStream#skip(long)
152 method = "skip",
156 // Test for method long java.io.StringBufferInputStream.skip(long)
157 long s = sbis.skip(6);
158 assertEquals("Unable to skip correct umber of chars", 6, s);
H A DLineNumberInputStreamTest.java111 lnis.skip(4);
218 lnis.skip(4);
226 lnis.skip(100);
264 * @tests java.io.LineNumberInputStream#skip(long)
268 method = "skip",
272 long skipped = lnis.skip(4);
280 lnis.skip(4);
H A DStringReaderTest.java87 sr.skip(5);
89 sr.skip(5);
225 sr.skip(5);
227 sr.skip(5);
239 * @tests java.io.StringReader#skip(long)
244 method = "skip",
248 // Test for method long java.io.StringReader.skip(long)
251 sr.skip(5);
254 assertTrue("Failed to skip properly", new String(buf, 0, 2)
257 fail("Exception during skip tes
[all...]
H A DBufferedReaderTest.java121 br.skip(500);
123 br.skip(250);
134 br.skip(500);
148 in.skip(6);
160 in.skip(6);
162 in.skip(7);
446 br.skip(500);
448 br.skip(500);
459 br.skip(500);
470 * @tests java.io.BufferedReader#skip(lon
[all...]
H A DPushbackInputStreamTest.java241 * @tests java.io.PushbackInputStream#skip(long)
246 method = "skip",
254 tobj.skip(6);
256 tobj.skip(1000000);
257 tobj.skip(1000000);
260 tobj.skip(1);
266 // Test for method long java.io.PushbackInputStream.skip(long)
269 pis.skip(50);
274 pis.skip(25);
421 tobj.skip(
[all...]
H A DCharArrayReaderTest.java127 cr.skip(5L);
255 cr.skip(1000);
285 cr.skip(5L);
302 * @tests java.io.CharArrayReader#skip(long)
306 method = "skip",
312 skipped = cr.skip(5L);
313 assertEquals("Test 1: Failed to skip correct number of chars;",
320 cr.skip(1);
H A DBufferedInputStreamTest.java102 is.skip(this.fileString.length() - 2);
240 method = "skip",
257 is.skip(10);
268 is.skip(10);
280 * regarding the invalidation of a set mark by read and skip operations.
283 is.skip(200);
296 is.skip(200);
306 // Test 7: Check that the mark is invalidated by a skip.
308 is.skip(11);
444 is.skip(300
[all...]
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DInflaterInputStreamTest.java236 assertEquals(4, in.skip(4));
383 * @tests java.util.zip.InflaterInputStream#skip(long)
388 method = "skip",
397 iis.skip(-3);
405 iis.skip(Integer.MIN_VALUE);
413 assertEquals("Incorrect Number Of Bytes Skipped.", 3, iis.skip(3));
418 assertEquals("Incorrect Number Of Bytes Skipped.", 0, iis.skip(0));
422 assertEquals("Incorrect Number Of Bytes Skipped.", 2, iis.skip(4));
428 * @tests java.util.zip.InflaterInputStream#skip(long)
433 method = "skip",
[all...]
H A DZipInputStreamTest.java308 * @tests java.util.zip.ZipInputStream#skip(long)
312 method = "skip",
318 zis.skip(2);
320 assertEquals("Failed to skip data", 10, r);
324 long s = zis.skip(1025);
325 assertTrue("invalid skip: " + s, s == 1025);
331 assertEquals("Assert 0: failed valid skip", skipLen, zis.skip(skipLen));
332 zis.skip(dataBytes.length);
333 assertEquals("Assert 1: performed invalid skip",
[all...]
H A DCheckedInputStreamTest.java109 * @tests java.util.zip.CheckedInputStream#skip(long)
114 method = "skip",
118 // testing that the return by skip is valid
125 "the value returned by skip(n) is not the same as its parameter",
126 skipValue, checkIn.skip(skipValue));
127 checkIn.skip(skipValue);
134 checkInput.skip(33);
151 // testing that the return by skip is valid
175 // testing that the return by skip is valid
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java84 public long skip(long sbytes) throws IOException { method in class:FtpURLInputStream
85 return is.skip(sbytes);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DSocketInputStream.java92 public long skip(long n) throws IOException { method in class:SocketInputStream
93 return (0 == n) ? 0 : super.skip(n);
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherInputStream1Test.java182 int skip = 2;
183 int ind = skip; // index into the data array (to check the got data)
185 cis.read(null, 0, skip);
186 int got = skip + cis.read(result, 0, 1); // the number of got bytes
209 * skip(long n) method testing. Tests that the method correctly skips the
215 method = "skip",
225 int skipped = (int) cis.skip(2);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DCheckedInputStream.java106 * the number of bytes to skip.
112 public long skip(long nbytes) throws IOException { method in class:CheckedInputStream

Completed in 402 milliseconds

1234