public void write(OutputStream out, boolean useRelativePaths, String relativeBase) throws IOException { PrintWriter writer = new PrintWriter(new OutputStreamWriter(out));
public void write(String outputFile, boolean useRelativePaths, String relativeBase) throws IOException { PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));
	public void write(OutputStream out, boolean useRelativePaths, String relativeBase) throws IOException {		PrintWriter writer = new PrintWriter(new OutputStreamWriter(out));		try {			writer.println(OPTIONS_KEY);			writer.println(RELATIVE_PATHS + "=" + useRelativePaths);			writer.println(JAR_FILES_KEY);			for (Iterator<String> i = jarList.iterator(); i.hasNext(); ) {				String jarFile = i.next();				if (useRelativePaths)					jarFile = convertToRelative(jarFile,relativeBase);				writer.println(jarFile);			}			writer.println(SRC_DIRS_KEY);			for (Iterator<String> i = srcDirList.iterator(); i.hasNext(); ) {				String srcDir = i.next();				if (useRelativePaths)					srcDir = convertToRelative(srcDir,relativeBase);				writer.println(srcDir);			}			writer.println(AUX_CLASSPATH_ENTRIES_KEY);			for (Iterator<String> i = auxClasspathEntryList.iterator(); i.hasNext(); ) {				String auxClasspathEntry = i.next();				if (useRelativePaths)					auxClasspathEntry = convertToRelative(auxClasspathEntry,relativeBase);				writer.println(auxClasspathEntry);			}		} finally {			writer.close();		}				// Project successfully saved		isModified = false;	}