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