test_class.declarator: fhu = new FileHttpUpload()
test_class.original_string: FileHttpUpload fhu = new FileHttpUpload();
test_class.type: FileHttpUpload
test_class.var_name: fhu
test_class.file: client/oim-client-common/src/test/java/com/oim/common/component/file/FileHttpUploadTest.java
test_class.identifier: FileHttpUploadTest
test_case.body: @Test
  	public void testUpload() {
  		Map<String, String> dataMap = new HashMap<String, String>();
  		dataMap.put("userId", "110");
  
  		FileAction<String> action = new FileAction<String>() {
  
  			@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(String t) {
  				System.out.println("success:" + t);
  
  			}
  
  			@Override
  			public void lost(String t) {
  				// TODO Auto-generated method stub
  
  			}
  		};
  		String http = "http://127.0.0.1:12000/api/v1/oim/file/upload.do";
  		File file = new File("E:/Release/oss.zip");
  		fhu.upload(http, file, dataMap, action);
  	}
test_case.class_method_signature: FileHttpUploadTest.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 upload
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/FileHttpUpload.java
focal_class.identifier: FileHttpUpload
focal_class.class_method_signature: FileHttpUpload.upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.full_signature: public String upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.identifier: upload
focal_class.modifiers: public
focal_class.parameters: (String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.return: String
focal_class.signature: String upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.class_method_signature: FileHttpUpload.upload(String http, String input, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.full_signature: public String upload(String http, String input, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.identifier: upload
focal_class.modifiers: public
focal_class.parameters: (String http, String input, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.return: String
focal_class.signature: String upload(String http, String input, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_class.class_method_signature: FileHttpUpload.putData(OutputStream out, String boundary, Map<String, String> dataMap)
focal_class.full_signature: private void putData(OutputStream out, String boundary, Map<String, String> dataMap)
focal_class.identifier: putData
focal_class.modifiers: private
focal_class.parameters: (OutputStream out, String boundary, Map<String, String> dataMap)
focal_class.return: void
focal_class.signature: void putData(OutputStream out, String boundary, Map<String, String> dataMap)
focal_class.superclass: extends FileHttpHandler
focal_method.body: public String upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction) {
  		return upload(http, "", file, dataMap, fileAction);
  	}
focal_method.class_method_signature: FileHttpUpload.upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_method.full_signature: public String upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_method.identifier: upload
focal_method.invocations: upload
focal_method.modifiers: public
focal_method.parameters: (String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)
focal_method.return: String
focal_method.signature: String upload(String http, File file, Map<String, String> dataMap, FileAction<String> fileAction)