标签:turn style exception tst exce write int vat buffer
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
private byte[] toByteArray(InputStream input) throws IOException { ByteArrayOutputStream output = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; int n = 0; while (-1 != (n = input.read(buffer))) { output.write(buffer, 0, n); } return output.toByteArray(); }
标签:turn style exception tst exce write int vat buffer
原文地址:https://www.cnblogs.com/junjun1578/p/14373719.html