Searched refs:readContent (Results 1 – 4 of 4) sorted by relevance
1922 ByteBuffer readContent = ByteBuffer.allocate(CAPACITY_NORMAL + 1); in test_readLjava_nio_ByteBuffer_Blocking() local1928 count = channel1.read(readContent); in test_readLjava_nio_ByteBuffer_Blocking()1940 readContent.flip(); in test_readLjava_nio_ByteBuffer_Blocking()1942 assertEquals(writeContent[i], readContent.get()); in test_readLjava_nio_ByteBuffer_Blocking()1966 ByteBuffer readContent = ByteBuffer.allocate(CAPACITY_NORMAL + 1); in test_readLjava_nio_ByteBuffer_Nonblocking() local1972 count = channel1.read(readContent); in test_readLjava_nio_ByteBuffer_Nonblocking()1985 assertEquals(CAPACITY_NORMAL, readContent.position()); in test_readLjava_nio_ByteBuffer_Nonblocking()1986 readContent.flip(); in test_readLjava_nio_ByteBuffer_Nonblocking()1988 assertEquals(writeContent[i], readContent.get()); in test_readLjava_nio_ByteBuffer_Nonblocking()2018 byte[] readContent = new byte[CAPACITY_NORMAL + 1]; in test_writeLjava_nio_ByteBuffer_Blocking()[all …]
427 byte[] readContent = new byte[size + 1]; in assertReadResult()430 while ((count = in.read(readContent, total, size + 1 - total)) != -1) { in assertReadResult()435 assertEquals((byte) i, readContent[i]); in assertReadResult() local
371 ByteBuffer readContent = ByteBuffer.allocate(10 + 1); in test_shutdownInput() local373 assertEquals(-1, channel1.read(readContent)); in test_shutdownInput()
546 private int readContent(InputStream is) { in readContent() method in Support_TestWebServer.Worker584 nread = readContent(is); in handleClient()