1 7 8 package java.io; 9 10 11 34 35 public class FileWriter extends OutputStreamWriter { 36 37 45 public FileWriter(String fileName) throws IOException { 46 super(new FileOutputStream (fileName)); 47 } 48 49 60 public FileWriter(String fileName, boolean append) throws IOException { 61 super(new FileOutputStream (fileName, append)); 62 } 63 64 72 public FileWriter(File file) throws IOException { 73 super(new FileOutputStream (file)); 74 } 75 76 89 public FileWriter(File file, boolean append) throws IOException { 90 super(new FileOutputStream (file, append)); 91 } 92 93 98 public FileWriter(FileDescriptor fd) { 99 super(new FileOutputStream (fd)); 100 } 101 102 } 103 | Popular Tags |