1. /*
  2. * @(#)FileReader.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 reading character files. The constructors of this
  10. * class assume that the default character encoding and the default byte-buffer
  11. * size are appropriate. To specify these values yourself, construct an
  12. * InputStreamReader on a FileInputStream.
  13. *
  14. * @see InputStreamReader
  15. * @see FileInputStream
  16. *
  17. * @version 1.8, 01/11/29
  18. * @author Mark Reinhold
  19. * @since JDK1.1
  20. */
  21. public class FileReader extends InputStreamReader {
  22. public FileReader(String fileName) throws FileNotFoundException {
  23. super(new FileInputStream(fileName));
  24. }
  25. public FileReader(File file) throws FileNotFoundException {
  26. super(new FileInputStream(file));
  27. }
  28. public FileReader(FileDescriptor fd) {
  29. super(new FileInputStream(fd));
  30. }
  31. }