still dealing with JarInputStream issues.
[vamsas.git] / src / org / vamsas / client / simpleclient / LockedFileOutputStream.java
1 /**\r
2  * \r
3  */\r
4 package org.vamsas.client.simpleclient;\r
5 \r
6 import java.io.File;\r
7 import java.io.FileDescriptor;\r
8 import java.io.FileNotFoundException;\r
9 import java.io.FileOutputStream;\r
10 import java.io.IOException;\r
11 \r
12 /**\r
13  * @author Jim\r
14  *\r
15  */\r
16 public class LockedFileOutputStream extends FileOutputStream {\r
17   \r
18   /**\r
19    * @param file\r
20    * @throws FileNotFoundException\r
21    */\r
22   public LockedFileOutputStream(File file) throws FileNotFoundException {\r
23     super(file);\r
24   }\r
25 \r
26   /**\r
27    * @param file\r
28    * @param append\r
29    * @throws FileNotFoundException\r
30    */\r
31   public LockedFileOutputStream(File file, boolean append)\r
32       throws FileNotFoundException {\r
33     super(file, append);\r
34   }\r
35 \r
36   /**\r
37    * @param fdObj\r
38    */\r
39   public LockedFileOutputStream(FileDescriptor fdObj) {\r
40     super(fdObj);\r
41   }\r
42 \r
43   /**\r
44    * @param name\r
45    * @throws FileNotFoundException\r
46    */\r
47   public LockedFileOutputStream(String name) throws FileNotFoundException {\r
48     super(name);\r
49   }\r
50 \r
51   /**\r
52    * @param name\r
53    * @param append\r
54    * @throws FileNotFoundException\r
55    */\r
56   public LockedFileOutputStream(String name, boolean append)\r
57       throws FileNotFoundException {\r
58     super(name, append);\r
59     // TODO Auto-generated constructor stub\r
60   }\r
61   /**\r
62    * closes - actually just flushes the stream instead.\r
63    */\r
64   public void close() throws IOException {\r
65     // TODO Auto-generated method stub\r
66     super.flush();\r
67   }\r
68   \r
69 }\r