/*
* @param ips  输入流
* @param ops  输出流
* @param closeStream  是否关闭流
* @throws Exception
*/
private static void copyStream(InputStream ips,OutputStream ops,boolean closeStream) throws Exception {
byte[] buf = new byte[1024];
int len = ips.read(buf);
while(len != -1) {
ops.write(buf,0,len);
len = ips.read(buf);
}
}