OpenJDK 11: Merging in java.io.ByteArrayInputStream and ByteArrayOutputStream

This is part of merging upstream changes from OpenJDK 11.28. This CL
updates java.io.ByteArrayInputStream and ByteArrayOutputStream

There are 3 new APIs added in java.io.ByteArrayInputStream:
    method public byte[] readAllBytes();
    method public int readNBytes(byte[], int, int);
    method public long transferTo(java.io.OutputStream) throws java.io.IOException;

And 2 more in java.io.ByteArrayOutputStream:
    method public String toString(java.nio.charset.Charset);
    method public void writeBytes(byte[]);

All of these are tested by newly added tests

Test: m droid
Test: atest ByteArrayInputStreamTest
Test: atest ByteArrayOutputStreamTest
Test: atest CtsLibcoreTestCases:libcore.java.io.ByteArrayInputStream.{TestName}
Test: atest CtsLibcoreTestCases:libcore.java.io.ByteArrayOutputStream.{TestName}
Change-Id: I22cca3f9b7a8089a4667ebafd1f9538b4b18d65b
7 files changed