@Test public void testByte2InputStream() throws Exception { String str = "中文"; InputStream in = StreamUtil.byte2InputStream(str.getBytes(Opslab.UTF_8)); String result = StreamUtil.streamToString(in); assertEquals(result, str); }
public final static InputStream byte2InputStream(byte[] b) { InputStream is = new ByteArrayInputStream(b); return is; }
StreamUtil { public final static InputStream byte2InputStream(byte[] b) { InputStream is = new ByteArrayInputStream(b); return is; } }
StreamUtil { public final static InputStream byte2InputStream(byte[] b) { InputStream is = new ByteArrayInputStream(b); return is; }  }
StreamUtil { public final static InputStream byte2InputStream(byte[] b) { InputStream is = new ByteArrayInputStream(b); return is; }  final static String streamToString(InputStream in); final static byte[] stream2Byte(InputStream is); final static byte[] inputStream2Byte(InputStream inStream); final static InputStream byte2InputStream(byte[] b); final static void streamSaveAsFile(InputStream is, File outfile); }
StreamUtil { public final static InputStream byte2InputStream(byte[] b) { InputStream is = new ByteArrayInputStream(b); return is; }  final static String streamToString(InputStream in); final static byte[] stream2Byte(InputStream is); final static byte[] inputStream2Byte(InputStream inStream); final static InputStream byte2InputStream(byte[] b); final static void streamSaveAsFile(InputStream is, File outfile);  }