import java.io.File;

/**
 * Each instance of this class represents a You-Get process.
 * 
 * @author Zhen Chen
 *
 */

public class YouGet implements Downloader {
	private static final String LOCATION = "E:/软件/You-Get/";
	private static String executable;
	private String outputPath;
	private String outputFilename;

	public static final void setExecutable() throws NoExecutableFileFoundException {
		try {
			executable = Helper.getFirstExecutablePath(LOCATION);
		} catch (NoExecutableFileFoundException e) {
			throw new NoExecutableFileFoundException("No YouGet program found in the given path: " + LOCATION, e);
		}
	}

	YouGet() {
	}

	YouGet(String outputPath) {
		this.outputPath = outputPath;
	}

	public static final String getLocation() {
		return LOCATION;
	}

	public static final String getExecutable() {
		return executable;
	}

	public void download() {
		// TODO
	}

}

@@ -624,18 +624,98 @@
 %7D%0A%0A%09
-YouGet() %7B
+/**%0A%09 * Set the default output path to the root.%0A%09 */%0A%09YouGet() %7B%0A%09%09this.outputPath = %22/%22;
 %0A%09%7D%0A

Set default output to root