Lines Matching defs:is
5 * This code is free software; you can redistribute it and/or modify it
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
139 InputStream is = exchange.getRequestBody();
140 String s = read (is, str1.length());
144 byte c = (byte)is.read();
163 is = exchange.getRequestBody();
164 s = read (is, str1.length());
168 byte c = (byte)is.read();
187 is = exchange.getRequestBody();
191 byte c = (byte)is.read();
219 static String read (InputStream is, int len) {
224 while ((c= is.read(ba, l, ba.length-l)) != -1 && l<len) {
234 static String read(InputStream is) {
238 while ((c= is.read(ba, off, ba.length)) != -1) {
257 static void readAndCompare(InputStream is, String cmp) throws IOException {
262 while ((c=is.read(buf, off, len)) != -1) {
284 InputStream is = urlc.getInputStream();
285 readAndCompare (is, str1);
286 is.close();
301 InputStream is = urlc.getInputStream();
302 readAndCompare (is, str2);
303 is.close();
352 InputStream is = urlc.getInputStream();
408 InputStream is = urlc.getInputStream();
409 readAndCompare (is, str1);
410 is.close();
429 InputStream is = urlc.getInputStream();
430 is.close();
456 InputStream is = urlc.getInputStream();
457 is.close();
478 InputStream is = urlc.getInputStream();
479 is.close();