1 6 21 22 package de.schlichtherle.io; 23 24 import java.io.FileDescriptor ; 25 import java.io.IOException ; 26 import java.io.OutputStreamWriter ; 27 28 40 41 public class FileWriter extends OutputStreamWriter { 42 43 public FileWriter(String path) throws IOException { 44 super(new FileOutputStream(path)); 45 } 46 47 public FileWriter(String path, boolean append) throws IOException { 48 super(new FileOutputStream(path, append)); 49 } 50 51 public FileWriter(File file) throws IOException { 52 super(new FileOutputStream(file)); 53 } 54 55 public FileWriter(File file, boolean append) throws IOException { 56 super(new FileOutputStream(file, append)); 57 } 58 59 public FileWriter(FileDescriptor fd) { 60 super(new FileOutputStream(fd)); 61 } 62 } 63 | Popular Tags |