View Javadoc
1   package org.kuali.common.util.metainf.model;
2   
3   import java.io.File;
4   
5   import org.kuali.common.util.Assert;
6   
7   public class WriteRequest {
8   
9   	private static final File DEFAULT_RELATIVE_DIR = null;
10  
11  	private final File outputFile;
12  	private final String encoding;
13  	private final File relativeDir;
14  
15  	public WriteRequest(File outputFile, String encoding) {
16  		this(outputFile, encoding, DEFAULT_RELATIVE_DIR);
17  	}
18  
19  	public WriteRequest(File outputFile, String encoding, File relativeDir) {
20  		Assert.noNulls(outputFile, encoding);
21  		this.outputFile = outputFile;
22  		this.encoding = encoding;
23  		this.relativeDir = relativeDir;
24  	}
25  
26  	public File getOutputFile() {
27  		return outputFile;
28  	}
29  
30  	public String getEncoding() {
31  		return encoding;
32  	}
33  
34  	public File getRelativeDir() {
35  		return relativeDir;
36  	}
37  
38  }