1. /*
  2. * @(#)UTFDataFormatException.java 1.9 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.io;
  11. /**
  12. * Signals that a malformed UTF-8 string has been read in a data
  13. * input stream or by any class that implements the data input
  14. * interface. See the <code>writeUTF</code> method for the format in
  15. * which UTF-8 strings are read and written.
  16. *
  17. * @author Frank Yellin
  18. * @version 1.9, 02/02/00
  19. * @see java.io.DataInput
  20. * @see java.io.DataInputStream#readUTF(java.io.DataInput)
  21. * @see java.io.IOException
  22. * @since JDK1.0
  23. */
  24. public
  25. class UTFDataFormatException extends IOException {
  26. /**
  27. * Constructs a <code>UTFDataFormatException</code> with
  28. * <code>null</code> as its error detail message.
  29. */
  30. public UTFDataFormatException() {
  31. super();
  32. }
  33. /**
  34. * Constructs a <code>UTFDataFormatException</code> with the
  35. * specified detail message. The string <code>s</code> can be
  36. * retrieved later by the
  37. * <code>{@link java.lang.Throwable#getMessage}</code>
  38. * method of class <code>java.lang.Throwable</code>.
  39. *
  40. * @param s the detail message.
  41. */
  42. public UTFDataFormatException(String s) {
  43. super(s);
  44. }
  45. }