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