|
|
|
|
@ -10,23 +10,13 @@ import java.net.URLConnection;
|
|
|
|
|
import org.apache.log4j.Logger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class SmtURLDownloadFunc
|
|
|
|
|
{
|
|
|
|
|
public class SmtURLDownloadFunc {
|
|
|
|
|
private static final Logger logger = Logger.getLogger(SmtURLDownloadFunc.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static final int size = 4096;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void fileUrlReadAndDownload(String fileAddress, String localFileName, String downloadDir) {
|
|
|
|
|
OutputStream outStream = null;
|
|
|
|
|
URLConnection uCon = null;
|
|
|
|
|
|