Searched refs:toRead (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/io/ |
D | Reader.java | 209 int toRead = charCount < 512 ? (int) charCount : 512; in skip() 210 char[] charsSkipped = new char[toRead]; in skip() 212 int read = read(charsSkipped, 0, toRead); in skip() 217 if (read < toRead) { in skip() 220 if (charCount - skipped < toRead) { in skip() 221 toRead = (int) (charCount - skipped); in skip()
|
/libcore/luni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 319 int toRead = byteCount > (len - lastRead) ? len - lastRead : byteCount; in read() local 320 if ((csize - inRead) < toRead) { in read() 321 toRead = csize - inRead; in read() 323 System.arraycopy(buf, lastRead, buffer, byteOffset, toRead); in read() 324 lastRead += toRead; in read() 325 inRead += toRead; in read() 326 crc.update(buffer, byteOffset, toRead); in read() 327 return toRead; in read()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 158 int toRead = (int) Math.min(byteCount - skipped, buffer.length); in skipByReading() local 159 int read = in.read(buffer, 0, toRead); in skipByReading() 164 if (read < toRead) { in skipByReading()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | BufferedInputStreamTest.java | 410 int toRead = len; in test_read$BII() 411 if (toRead > available()) { in test_read$BII() 412 toRead = available(); in test_read$BII() 414 System.arraycopy(contents, pos, buf, off, toRead); in test_read$BII() 415 pos += toRead; in test_read$BII() 416 return toRead; in test_read$BII()
|
D | BufferedReaderTest.java | 312 int toRead = len; in test_read$CII() 313 if (toRead > (size - pos)) in test_read$CII() 314 toRead = size - pos; in test_read$CII() 315 System.arraycopy(contents, pos, buf, off, toRead); in test_read$CII() 316 pos += toRead; in test_read$CII() 317 return toRead; in test_read$CII()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 1353 final Socket toRead = (readUnderlying) ? underlying : clientWrapping; in test_SSLSocket_interrupt_case() local 1366 toRead.setSoTimeout(5 * 1000); in test_SSLSocket_interrupt_case() 1367 toRead.getInputStream().read(); in test_SSLSocket_interrupt_case()
|