package com.bzu.softwareconstruction.logic;

import java.io.File;
import java.io.FileNotFoundException;

import com.bzu.softwareconstruction.segments.SegmentPartUrl;
import com.bzu.softwareconstruction.services.Services;


public class MainLogic {
	public static void main(String args[]) throws FileNotFoundException{
		//Segment segment = "/test_data/text_test.segments")));
		String baseUrl = "file:/Users/ghalebkhaled/Documents/workspace/Downloader/";
		Services.multipartDownloader.download(new SegmentPartUrl(baseUrl+"test_data/text_test.segments"), new File("./test_output/"));
		Services.multipartDownloader.download(new SegmentPartUrl(baseUrl+"test_data2/test2.segments"), new File("./test_output/"));

	}
}

@@ -393,64 +393,33 @@
  = %22
-file:/Users/ghalebkhaled/Documents/workspace/Downloader/
+http://151.80.134.50/data
 %22;%0A%09
@@ -485,25 +485,16 @@
 aseUrl+%22
-test_data
 /text_te
@@ -538,16 +538,18 @@
 t/%22));%0A%09
+//
 %09Service
@@ -611,18 +611,8 @@
 rl+%22
-test_data2
 /tes

add real data link segments