Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5c8144f14202c8c875a584effdc8a075d17d8ec5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.eclipse.cdt.p2.internal.repo.artifact;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class FileListWriter {

	private final BufferedWriter out;
	
	public FileListWriter(File fileListFile) throws IOException {
		out = new BufferedWriter(new FileWriter(fileListFile));
	}
	
	public void addFile(InstalledFile file) throws IOException {
		file.write(out);
	}
	
	public void close() throws IOException {
		out.close();
	}

}

Back to the top