Lines Matching refs:in
9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
35 private static void dotest(InputStream in , int curpos ,
43 "\nTotal bytes in the Stream = " + total +
48 long skipped = in.skip(toskip);
66 MyInputStream in = new MyInputStream(11);
69 dotest(in, 0, 11, -23, 0);
72 dotest(in, 0, 11, 20, 11);
75 dotest(in, -1, 11, 20, 0);
77 in = new MyInputStream(9000);
78 /* check for skip equal to the read chunk size in InputStream.java */
79 dotest(in, 0, 9000, 2048, 2048);
81 /* check for skip greater than the read chunk size in InputStream.java */
82 dotest(in, 2048, 9000, 5000, 5000);
85 dotest(in, 7048, 9000, 5000, 1952);
87 in = new MyInputStream(5000);
90 dotest(in, 0, 5000, 6000, 5000);
97 * in = new MyInputStream(total);
98 * dotest(in, 0, total, toskip, toskip);