test_class.file: client/oim-client-common/src/test/java/com/oim/common/component/file/FileHttpDownloadTest.java
test_class.identifier: FileHttpDownloadTest
test_case.body: @Test
  	public void testUpload() {
  		Map<String, String> dataMap = new HashMap<String, String>();
  		dataMap.put("userId", "110");
  
  		FileAction<File> action = new FileAction<File>() {
  
  			@Override
  			public void progress(long speed, long size, long finishSize, double progress) {
  
  				String speedText = "0MB/s";
  				if (speed < 1024) {
  					speedText = speed + "B/s";
  				} else if (1024 <= speed && speed < (1024 * 1024)) {
  					String s = OnlyNumberUtil.format(((double) speed / 1024d));
  					speedText = s + "KB/s";
  				} else {
  					String s = OnlyNumberUtil.format(((double) speed / (double) (1024 * 1024)));
  					speedText = s + "MB/s";
  				}
  
  				StringBuilder sb = new StringBuilder();
  				sb.append("size:" + size);
  				sb.append(" ");
  				sb.append("finishSize:" + finishSize);
  				sb.append(" ");
  				sb.append("progress:" + progress);
  				sb.append(" ");
  				sb.append("speed:");
  				sb.append(speedText);
  				sb.append(" ");
  				System.out.println(sb);
  			}
  
  			@Override
  			public void success(File t) {
  				System.out.println(t.getAbsolutePath());
  			}
  
  			@Override
  			public void lost(File t) {
  				// TODO Auto-generated method stub
  
  			}
  		};
  		String http = "http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-windows.exe";
  		String savaPath = "Temp/";
  		String fileName = "";
  
  		boolean onlyReplaceName = false;
  		FileHttpDownload fhd = new FileHttpDownload();
  		fhd.download(http,"", savaPath, fileName, onlyReplaceName, action);
  	}
test_case.class_method_signature: FileHttpDownloadTest.testUpload()
test_case.full_signature: @Test public void testUpload()
test_case.identifier: testUpload
test_case.invocations: put format format append append append append append append append append append println println getAbsolutePath download
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpload()
focal_class.file: client/oim-client-common/src/main/java/com/oim/common/component/file/FileHttpDownload.java
focal_class.identifier: FileHttpDownload
focal_class.class_method_signature: FileHttpDownload.download(String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_class.full_signature: public void download(String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_class.identifier: download
focal_class.modifiers: public
focal_class.parameters: (String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_class.return: void
focal_class.signature: void download(String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_class.class_method_signature: FileHttpDownload.download(String http, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.full_signature: public void download(String http, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.identifier: download
focal_class.modifiers: public
focal_class.parameters: (String http, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.return: void
focal_class.signature: void download(String http, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.class_method_signature: FileHttpDownload.download(String http, String method, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.full_signature: public void download(String http, String method, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.identifier: download
focal_class.modifiers: public
focal_class.parameters: (String http, String method, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.return: void
focal_class.signature: void download(String http, String method, String savaPath, String fileName, boolean onlyReplaceName, FileAction<File> fileAction)
focal_class.class_method_signature: FileHttpDownload.download(String http, String filePath, FileAction<File> fileAction)
focal_class.full_signature: public void download(String http, String filePath, FileAction<File> fileAction)
focal_class.identifier: download
focal_class.modifiers: public
focal_class.parameters: (String http, String filePath, FileAction<File> fileAction)
focal_class.return: void
focal_class.signature: void download(String http, String filePath, FileAction<File> fileAction)
focal_class.class_method_signature: FileHttpDownload.download(String http, File saveFile, FileAction<File> fileAction)
focal_class.full_signature: public void download(String http, File saveFile, FileAction<File> fileAction)
focal_class.identifier: download
focal_class.modifiers: public
focal_class.parameters: (String http, File saveFile, FileAction<File> fileAction)
focal_class.return: void
focal_class.signature: void download(String http, File saveFile, FileAction<File> fileAction)
focal_class.class_method_signature: FileHttpDownload.getFileNameFromUrl(String url)
focal_class.full_signature: public static String getFileNameFromUrl(String url)
focal_class.identifier: getFileNameFromUrl
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String getFileNameFromUrl(String url)
focal_class.class_method_signature: FileHttpDownload.getFileName(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.full_signature: public String getFileName(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.identifier: getFileName
focal_class.modifiers: public
focal_class.parameters: (String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.return: String
focal_class.signature: String getFileName(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.class_method_signature: FileHttpDownload.getFileNameO(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.full_signature: public String getFileNameO(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.identifier: getFileNameO
focal_class.modifiers: public
focal_class.parameters: (String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.return: String
focal_class.signature: String getFileNameO(String http, String disposition, String fileName, boolean onlyReplaceName)
focal_class.class_method_signature: FileHttpDownload.main(String[] arg)
focal_class.full_signature: public static void main(String[] arg)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] arg)
focal_class.return: void
focal_class.signature: void main(String[] arg)
focal_class.superclass: extends FileHttpHandler
focal_method.body: public void download(String http, String savaPath, String fileName, FileAction<File> fileAction) {
  		download(http, savaPath, fileName, false, fileAction);
  	}
focal_method.class_method_signature: FileHttpDownload.download(String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_method.full_signature: public void download(String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_method.identifier: download
focal_method.invocations: download
focal_method.modifiers: public
focal_method.parameters: (String http, String savaPath, String fileName, FileAction<File> fileAction)
focal_method.return: void
focal_method.signature: void download(String http, String savaPath, String fileName, FileAction<File> fileAction)