KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > io > FileWriter


1 /*
2  * FileWriter.java
3  *
4  * Created on 8. November 2006, 19:42
5  */

6 /*
7  * Copyright 2006 Schlichtherle IT Services
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package de.schlichtherle.io;
23
24 import java.io.FileDescriptor JavaDoc;
25 import java.io.IOException JavaDoc;
26 import java.io.OutputStreamWriter JavaDoc;
27
28 /**
29  * A <em>drop-in-replacement</em> for <code>java.io.FileWriter</code>
30  * which provides transparent access to archive files as if they were just
31  * directories in a path name.
32  *
33  * @see FileOutputStream
34  * @see File#umount()
35  * @see <a HREF="package-summary.html#package_description">Package Description</a>
36  * @author Christian Schlichtherle
37  * @version @version@
38  * @since TrueZIP 6.4
39  */

40
41 public class FileWriter extends OutputStreamWriter JavaDoc {
42
43     public FileWriter(String JavaDoc path) throws IOException JavaDoc {
44     super(new FileOutputStream(path));
45     }
46
47     public FileWriter(String JavaDoc path, boolean append) throws IOException JavaDoc {
48     super(new FileOutputStream(path, append));
49     }
50
51     public FileWriter(File file) throws IOException JavaDoc {
52     super(new FileOutputStream(file));
53     }
54
55     public FileWriter(File file, boolean append) throws IOException JavaDoc {
56         super(new FileOutputStream(file, append));
57     }
58
59     public FileWriter(FileDescriptor JavaDoc fd) {
60     super(new FileOutputStream(fd));
61     }
62 }
63
Popular Tags