OpenJDK 11: Merging in java.io.InputStream
This is part of merging upstream changes from OpenJDK 11.28. This CL
updates java.io.InputStream
There are 5 new APIs added in java.io.InputStream:
method public static java.io.InputStream nullInputStream();
method public byte[] readAllBytes() throws java.io.IOException;
method public byte[] readNBytes(int) throws java.io.IOException;
method public int readNBytes(byte[], int, int) throws java.io.IOException;
method public long transferTo(java.io.OutputStream) throws java.io.IOException;
All of these are tested by newly added tests
Test: m droid
Test: atest InputStreamTest
Test: atest CtsLibcoreTestCases:libcore.java.io.InputStream.{TestName}
Change-Id: I244a7561ed5e65ddb41801e5a7b9823aa8dba0f3
7 files changed