1. /*
  2. * @(#)FileWriter.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. /**
  9. * Convenience class for writing character files. The constructors of this
  10. * class assume that the default character encoding and the default byte-buffer
  11. * size are acceptable. To specify these values yourself, construct an
  12. * OutputStreamWriter on a FileOutputStream.
  13. *
  14. * @see OutputStreamWriter
  15. * @see FileOutputStream
  16. *
  17. * @version 1.8, 01/11/29
  18. * @author Mark Reinhold
  19. * @since JDK1.1
  20. */
  21. public class FileWriter extends OutputStreamWriter {
  22. public FileWriter(String fileName) throws IOException {
  23. super(new FileOutputStream(fileName));
  24. }
  25. public FileWriter(String fileName, boolean append) throws IOException {
  26. super(new FileOutputStream(fileName, append));
  27. }
  28. public FileWriter(File file) throws IOException {
  29. super(new FileOutputStream(file));
  30. }
  31. public FileWriter(FileDescriptor fd) {
  32. super(new FileOutputStream(fd));
  33. }
  34. }