1. /*
  2. * @(#)UTFDataFormatException.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. * Signals that a malformed UTF-8 string has been read in a data
  10. * input stream or by any class that implements the data input
  11. * interface. See the <code>writeUTF</code> method for the format in
  12. * which UTF-8 strings are read and written.
  13. *
  14. * @author Frank Yellin
  15. * @version 1.8, 11/29/01
  16. * @see java.io.DataInput
  17. * @see java.io.DataInputStream#readUTF(java.io.DataInput)
  18. * @see java.io.IOException
  19. * @since JDK1.0
  20. */
  21. public
  22. class UTFDataFormatException extends IOException {
  23. /**
  24. * Constructs a <code>UTFDataFormatException</code> with
  25. * <code>null</code> as its error detail message.
  26. */
  27. public UTFDataFormatException() {
  28. super();
  29. }
  30. /**
  31. * Constructs a <code>UTFDataFormatException</code> with the
  32. * specified detail message. The string <code>s</code> can be
  33. * retrieved later by the
  34. * <code>{@link java.lang.Throwable#getMessage}</code>
  35. * method of class <code>java.lang.Throwable</code>.
  36. *
  37. * @param s the detail message.
  38. */
  39. public UTFDataFormatException(String s) {
  40. super(s);
  41. }
  42. }