摘要:
String –> InputStreamInputStrem is = new ByteArrayInputStream(str.getBytes());ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes());InputStream–>StringinputStream input;StringBuffer out = new StringBuffer(); byte[] b = new byte[4096]; for (int n; (n = input.read(b)) != -1;) .. 阅读全文