ByteArrayOutputStream转成String

ByteArrayOutputStream out = new ByteArrayOutputStream();

//serializer.setOutput(out, "utf-8");

 new String(out.toByteArray(), "utf-8");

你可能感兴趣的:(Java)