Is there a way that i can Get the file it being written in case of FileWirter. I dont have any reference to the File object with me.
public class JobResponseWriter extends FileWriter{
public JobResponseWriter(Job job) throws IOException {
super(File.createTempFile("JobResponse" + job.getId() ,"tmp"));
}
public void writeLn(String str) throws IOException {
super.write(str + "\n");
}
}
How can I get the File that got created in this case. I will access thefile only after the writer is closed..But i dont want to keep a separate list of all the file created. Whats the best way.