Convert Contents Of A ByteArrayInputStream To String
问题 I read this post but I am not following. I have seen this but have not seen a proper example of converting a ByteArrayInputStream to String using a ByteArrayOutputStream . To retrieve the contents of a ByteArrayInputStream as a String , is using a ByteArrayOutputstream recommended or is there a more preferable way? I was considering this example and extend ByteArrayInputStream and utilize a Decorator to increase functionality at run time. Any interest in this being a better solution to