2c129746795b0953cebc62a39df04e0991e1a252
[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     // TODO Auto-generated constructor stub\r
25   }\r
26 \r
27   /**\r
28    * @param file\r
29    * @param append\r
30    * @throws FileNotFoundException\r
31    */\r
32   public LockedFileOutputStream(File file, boolean append)\r
33       throws FileNotFoundException {\r
34     super(file, append);\r
35     // TODO Auto-generated constructor stub\r
36   }\r
37 \r
38   /**\r
39    * @param fdObj\r
40    */\r
41   public LockedFileOutputStream(FileDescriptor fdObj) {\r
42     super(fdObj);\r
43     // TODO Auto-generated constructor stub\r
44   }\r
45 \r
46   /**\r
47    * @param name\r
48    * @throws FileNotFoundException\r
49    */\r
50   public LockedFileOutputStream(String name) throws FileNotFoundException {\r
51     super(name);\r
52     // TODO Auto-generated constructor stub\r
53   }\r
54 \r
55   /**\r
56    * @param name\r
57    * @param append\r
58    * @throws FileNotFoundException\r
59    */\r
60   public LockedFileOutputStream(String name, boolean append)\r
61       throws FileNotFoundException {\r
62     super(name, append);\r
63     // TODO Auto-generated constructor stub\r
64   }\r
65   /**\r
66    * closes - actually just flushes the stream instead.\r
67    */\r
68   public void close() throws IOException {\r
69     // TODO Auto-generated method stub\r
70     super.flush();\r
71   }\r
72   \r
73 }\r