01: /*
02: * Created on Feb 12, 2004
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.io;
08:
09: import java.io.File;
10: import java.util.HashMap;
11:
12: /**
13: * @author AYegorov
14: *
15: * To change the template for this generated type comment go to
16: * Window>Preferences>Java>Code Generation>Code and Comments
17: */
18: public class FileContent extends AbstractFile {
19: File f = null;
20:
21: /**
22: * @param id
23: */
24: public FileContent(String id) {
25: super (id);
26: // XXX Auto-generated constructor stub
27: }
28:
29: /**
30: * @param id
31: * @param properties
32: */
33: public FileContent(String id, HashMap properties) {
34: super (id, properties);
35: // XXX Auto-generated constructor stub
36: }
37:
38: /* (non-Javadoc)
39: * @see org.xdev.base.xssl.io.AbstractFile#processFile(java.io.File)
40: */
41: protected Object processFile(File f) throws Exception {
42:
43: this .f = f;
44:
45: return f;
46: }
47:
48: public void rollback() throws Exception {
49: this.f.delete();
50: }
51: }
|