Say I have a byte array like,
byte[] byteArray = { 'm', 'e', 'o', 'w'};
I'm converting this to InputStream using,
new ByteArrayInputStream(byteArray)
But I want the resultant InputStream to add a new line after each array entry like
m
e
o
w
How can I achieve this in an efficient way. The byte array could have 100s to 1000s of entries?