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

1234

/libcore/luni/src/main/java/libcore/io/
H A DBufferIterator.java34 public abstract void skip(int byteCount); method in class:BufferIterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DStringBufferInputStreamTest.java50 sbis.skip(6);
69 long s = sbis.skip(6);
70 assertEquals("Unable to skip correct umber of chars", 6, s);
76 * java.io.StringBufferInputStream#skip(long)
79 // Test for method long java.io.StringBufferInputStream.skip(long)
80 long s = sbis.skip(6);
81 assertEquals("Unable to skip correct umber of chars", 6, s);
H A DPushbackReaderTest.java218 * java.io.PushbackReader#skip(long)
244 numSkipped = pReader2.skip(3);
247 numSkipped += pReader2.skip(10);
248 numSkipped += pReader2.skip(10);
249 numSkipped += pReader2.skip(10);
250 numSkipped += pReader2.skip(10);
251 numSkipped += pReader2.skip(10);
252 numSkipped += pReader2.skip(10);
253 assertEquals("Did not skip correct number of characters",
256 numSkipped += pReader.skip(
[all...]
H A DLineNumberInputStreamTest.java76 lnis.skip(4);
114 lnis.skip(4);
123 lnis.skip(100);
141 * java.io.LineNumberInputStream#skip(long)
144 lnis.skip(4);
H A DStringReaderTest.java59 sr.skip(5);
61 sr.skip(5);
127 sr.skip(5);
129 sr.skip(5);
138 * java.io.StringReader#skip(long)
141 // Test for method long java.io.StringReader.skip(long)
143 sr.skip(5);
146 assertTrue("Failed to skip properly", new String(buf, 0, 2)
H A DCharArrayReaderTest.java71 cr.skip(5L);
113 cr.skip(1000);
138 cr.skip(5L);
160 * java.io.CharArrayReader#skip(long)
164 long skipped = cr.skip(5L);
166 assertEquals("Failed to skip correct number of chars", 5L, skipped);
H A DBufferedInputStreamTest.java128 is.skip(bufferSize - 2);
247 is.skip(50);
262 in.skip(6);
269 in.skip(6);
271 in.skip(7);
384 is.skip(500);
490 buffis.skip(5);
502 buffis.skip(6);
507 * java.io.BufferedInputStream#skip(long)
512 is.skip(100
[all...]
H A DByteArrayInputStreamTest.java96 is.skip(3000);
128 is.skip(50);
151 * ByteArrayInputStream#skip(long)
155 is.skip(100);
157 assertTrue("Failed to skip to correct position", new String(buf1, 0,
/libcore/luni/src/main/java/java/io/
H A DObjectInput.java99 public long skip(long byteCount) throws IOException; method in interface:ObjectInput
H A DFilterInputStream.java95 * @see #skip(long)
150 public long skip(long byteCount) throws IOException { method in class:FilterInputStream
151 return in.skip(byteCount);
H A DFilterReader.java92 * @see #skip(long)
154 * {@code read()} and {@code skip()} will occur from this new location. If
175 * default implementation is to skip characters in the filtered reader.
186 public long skip(long charCount) throws IOException { method in class:FilterReader
188 return in.skip(charCount);
H A DPushbackReader.java341 public long skip(long charCount) throws IOException { method in class:PushbackReader
359 inSkipped = in.skip(requiredFromIn);
361 inSkipped = in.skip(charCount);
H A DDataInputStream.java194 * the number of bytes to skip.
203 long skip;
204 while (skipped < count && (skip = in.skip(count - skipped)) != 0) {
205 skipped += skip;
H A DInputStream.java84 * read or skip will actually read or skip that many bytes: they may read or skip fewer.
218 * choose to skip fewer bytes than requested. Callers should <i>always</i>
228 public long skip(long byteCount) throws IOException { method in class:InputStream
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DInflaterInputStreamTest.java251 assertEquals(4, in.skip(4));
346 * java.util.zip.InflaterInputStream#skip(long)
354 iis.skip(-3);
362 iis.skip(Integer.MIN_VALUE);
370 assertEquals("Incorrect Number Of Bytes Skipped.", 3, iis.skip(3));
375 assertEquals("Incorrect Number Of Bytes Skipped.", 0, iis.skip(0));
379 assertEquals("Incorrect Number Of Bytes Skipped.", 2, iis.skip(4));
385 * java.util.zip.InflaterInputStream#skip(long)
392 // testing for negative input to skip
398 long skip;
[all...]
H A DZipInputStreamTest.java182 * java.util.zip.ZipInputStream#skip(long)
187 zis.skip(2);
189 assertEquals("Failed to skip data", 10, r);
193 long s = zis.skip(1025);
194 assertEquals("invalid skip: " + s, 1025, s);
199 assertEquals("Assert 0: failed valid skip", skipLen, zis.skip(skipLen));
200 zis.skip(dataBytes.length);
201 assertEquals("Assert 1: performed invalid skip", 0, zis.skip(
[all...]
H A DCheckedInputStreamTest.java78 * java.util.zip.CheckedInputStream#skip(long)
81 // testing that the return by skip is valid
85 assertEquals("the value returned by skip(n) is not the same as its parameter",
86 skipValue, checkIn.skip(skipValue));
87 checkIn.skip(skipValue);
92 assertEquals(0, checkIn.skip(0));
97 // testing that the return by skip is valid
114 // testing that the return by skip is valid
/libcore/luni/src/test/java/libcore/java/io/
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 DOldBufferedReaderTest.java87 br.skip(500);
89 br.skip(250);
100 br.skip(500);
114 in.skip(6);
126 in.skip(6);
128 in.skip(7);
268 br.skip(-1);
274 br.skip(500);
277 assertTrue("Test 2: Failed to set skip properly.",
284 br.skip(
[all...]
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);
/libcore/luni/src/main/java/java/util/zip/
H A DCheckedInputStream.java100 * @param byteCount the number of bytes to skip.
105 public long skip(long byteCount) throws IOException { method in class:CheckedInputStream

Completed in 1276 milliseconds

1234