1. /*
  2. * @(#)EOFException.java 1.12 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.io;
  8. /**
  9. * Signals that an end of file or end of stream has been reached
  10. * unexpectedly during input.
  11. * <p>
  12. * This exception is mainly used by data input streams to signal end of
  13. * stream. Note that many other input operations return a special value on
  14. * end of stream rather than throwing an exception.
  15. * <p>
  16. *
  17. * @author Frank Yellin
  18. * @version 1.12, 01/23/03
  19. * @see java.io.DataInputStream
  20. * @see java.io.IOException
  21. * @since JDK1.0
  22. */
  23. public
  24. class EOFException extends IOException {
  25. /**
  26. * Constructs an <code>EOFException</code> with <code>null</code>
  27. * as its error detail message.
  28. */
  29. public EOFException() {
  30. super();
  31. }
  32. /**
  33. * Constructs an <code>EOFException</code> with the specified detail
  34. * message. The string <code>s</code> may later be retrieved by the
  35. * <code>{@link java.lang.Throwable#getMessage}</code> method of class
  36. * <code>java.lang.Throwable</code>.
  37. *
  38. * @param s the detail message.
  39. */
  40. public EOFException(String s) {
  41. super(s);
  42. }
  43. }