有
ByteArrayOutputStream b = ...;
//some code under test writes to b
Reader result = (convert b to reader);
IOUtils.contentEqualsIgnoreEOL(expected, result);
如何将 a 转换ByteArrayOutputStream
为 a Reader
?
有
ByteArrayOutputStream b = ...;
//some code under test writes to b
Reader result = (convert b to reader);
IOUtils.contentEqualsIgnoreEOL(expected, result);
如何将 a 转换ByteArrayOutputStream
为 a Reader
?