字节到流

得到了 byte[],转成流:
byte[] responseBody = getMethod.getResponseBody();
			SAXReader saxReader = new SAXReader();
			InputStream in = new ByteArrayInputStream(responseBody);
			InputStreamReader strInStream = new InputStreamReader(in, "GBK");

此时strInStream就可以使用了

你可能感兴趣的:(java)