Searched refs:readNBytes (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/test/java/io/InputStream/ |
D | NullInputStream.java | 112 assertEquals(0, openStream.readNBytes(new byte[1], 0, 1), in testReadNBytes() 122 assertEquals(0, openStream.readNBytes(-1).length, in testReadNBytesWithLength() 130 assertEquals(0, openStream.readNBytes(0).length, in testReadNBytesWithLength() 132 assertEquals(0, openStream.readNBytes(1).length, in testReadNBytesWithLength() 212 closedStream.readNBytes(new byte[1], 0, 1); in testReadNBytesClosed() 221 closedStream.readNBytes(1); in testReadNBytesWithLengthClosed()
|
D | ReadNBytes.java | 70 int nread = in.readNBytes(readBytes, 0, readBytes.length); in test() 81 nread = in.readNBytes(readBytes, 0, readBytes.length); in test() 95 check((x = in.readNBytes(tmp, 0, tmp.length)) == 0, in test() 107 in.readNBytes(max); in test() 114 check((x = in.readNBytes(max).length) == 0, in test() 121 byte[] readBytes = in.readNBytes(len); in test() 129 readBytes = in.readNBytes(remaining); in test()
|
/libcore/ojluni/src/test/java/io/FileInputStream/ |
D | ReadXBytes.java | 59 fis.readNBytes(-1); in main() 63 byte[] nbytes = fis.readNBytes(0); in main() 67 byte[] b = fis.readNBytes(1); in main() 94 byte[] nbytes = fis.readNBytes(0); in main() 97 nbytes = fis.readNBytes(len); in main()
|
/libcore/ojluni/src/main/java/java/io/ |
D | InputStream.java | 124 public int readNBytes(byte[] b, int off, int len) in nullInputStream() method 132 public byte[] readNBytes(int len) throws IOException { in nullInputStream() method 346 return readNBytes(Integer.MAX_VALUE); in readAllBytes() 394 public byte[] readNBytes(int len) throws IOException { in readNBytes() method 501 public int readNBytes(byte[] b, int off, int len) throws IOException { in readNBytes() method
|
D | ByteArrayInputStream.java | 197 public int readNBytes(byte[] b, int off, int len) { in readNBytes() method in ByteArrayInputStream
|
/libcore/ojluni/src/test/java/io/ByteArrayInputStream/ |
D | ReadAllReadNTransferTo.java | 60 if (bais.readNBytes(bN, off, len) != len) { in testRead()
|
/libcore/api/ |
D | current.txt | 1377 method public int readNBytes(byte[], int, int); 1720 method public byte[] readNBytes(int) throws java.io.IOException; 1721 method public int readNBytes(byte[], int, int) throws java.io.IOException;
|