Lines Matching refs:len
165 * If <code>len</code> is not zero, the method
170 * @param len the maximum number of bytes read
175 * <code>len</code> is negative, or <code>len</code> is greater than
180 public int read(byte[] b, int off, int len) throws IOException {
182 if (off < 0 || len < 0 || off > b.length - len) {
184 } else if (len == 0) {
193 len = super.read(b, off, len);
194 if (len == -1) {
199 crc.update(b, off, len);
201 return len;
208 if (len > remaining) {
209 len = (int)remaining;
211 len = in.read(b, off, len);
212 if (len == -1) {
215 crc.update(b, off, len);
216 remaining -= len;
222 return len;
244 int len = max - total;
245 if (len > tmpbuf.length) {
246 len = tmpbuf.length;
248 len = read(tmpbuf, 0, len);
249 if (len == -1) {
253 total += len;
287 int len = get16(tmpbuf, LOCNAM);
289 if (len > blen) {
292 while (len > blen);
295 readFully(b, 0, len);
298 ? zc.toStringUTF8(b, len)
299 : zc.toString(b, len));
317 len = get16(tmpbuf, LOCEXT);
318 if (len > 0) {
319 byte[] bb = new byte[len];
320 readFully(bb, 0, len);
325 while (off + 4 < len) {
331 if (sz < 16 || (off + sz) > len ) {
366 ((PushbackInputStream)in).unread(buf, len - n, n);
422 private void readFully(byte[] b, int off, int len) throws IOException {
423 while (len > 0) {
424 int n = in.read(b, off, len);
429 len -= n;