Home
last modified time | relevance | path

Searched refs:transferTo (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java49 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
53 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
57 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
65 assertThrowsNPE(() -> fin.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
98 in.transferTo(out); in transferToThenCheckIfAnyClosed()
119 in.transferTo(out); in onReturnNeitherStreamIsClosed()
132 in.transferTo(out); in onReturnInputIsAtEnd()
152 in.transferTo(out); in checkTransferredContents()
DNullInputStream.java166 assertEquals(0, openStream.transferTo(new ByteArrayOutputStream(7)), in testTransferTo()
248 closedStream.transferTo(new ByteArrayOutputStream(7)); in testTransferToClosed()
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java50 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
54 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
58 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
66 assertThrowsNPE(() -> fin.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
99 in.transferTo(out); in transferToThenCheckIfAnyClosed()
120 in.transferTo(out); in onReturnNeitherStreamIsClosed()
133 in.transferTo(out); in onReturnInputIsAtEnd()
153 in.transferTo(out); in checkTransferredContents()
DNullReader.java111 assertEquals(0, openReader.transferTo(new StringWriter(7)), in testTransferTo()
149 closedReader.transferTo(new StringWriter(7)); in testTransferToClosed()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java2707 readOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Null()
2713 writeOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Null()
2720 readWriteFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Null()
2727 writeOnlyFileChannel.transferTo(-1, 0, writableByteChannel); in test_transferToJJLWritableByteChannel_Null()
2741 readOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Closed()
2749 writeOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Closed()
2757 readWriteFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_Closed()
2765 readWriteFileChannel.transferTo(0, -1, writableByteChannel); in test_transferToJJLWritableByteChannel_Closed()
2777 readOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_SourceClosed()
2783 writeOnlyFileChannel.transferTo(0, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_SourceClosed()
[all …]
/libcore/ojluni/src/main/java/java/io/
DReader.java129 public long transferTo(Writer out) throws IOException { in nullReader() method
379 public long transferTo(Writer out) throws IOException { in transferTo() method
DInputStream.java155 public long transferTo(OutputStream out) throws IOException { in nullInputStream() method
777 public long transferTo(OutputStream out) throws IOException { in transferTo() method
DByteArrayInputStream.java202 public synchronized long transferTo(OutputStream out) throws IOException { in transferTo() method in ByteArrayInputStream
/libcore/ojluni/src/test/java/io/ByteArrayInputStream/
DReadAllReadNTransferTo.java82 if (bais.transferTo(baos) != buf.length) { in testRead()
/libcore/ojluni/src/main/java/java/nio/channels/
DFileChannel.java629 public abstract long transferTo(long position, long count, in transferTo() method in FileChannel
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DFileChannelImpl.java139 public long transferTo(long position, long count, java.nio.channels.WritableByteChannel target) in transferTo() method in FileChannelImpl
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java1057 readOnlyFileChannel.transferTo(10, -1, writableByteChannel); in test_transferToJJLWritableByteChannel_IllegalArgument()
1064 readWriteFileChannel.transferTo(-1, 10, writableByteChannel); in test_transferToJJLWritableByteChannel_IllegalArgument()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java983 is.transferTo(baos); in executeClientRequest()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileChannelImpl.java633 public long transferTo(long position, long count, in transferTo() method in FileChannelImpl
/libcore/api/
Dcurrent.txt1725 method public long transferTo(java.io.OutputStream) throws java.io.IOException;
2192 method public long transferTo(java.io.Writer) throws java.io.IOException;
6769 …method public abstract long transferTo(long, long, java.nio.channels.WritableByteChannel) throws j…