home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / io / UTFDataFormatException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.4 KB  |  50 lines

  1. /*
  2.  * @(#)UTFDataFormatException.java    1.5 98/03/18
  3.  *
  4.  * Copyright 1995-1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.io;
  16.  
  17. /**
  18.  * Signals that a malformed UTF-8 string has been read in a data 
  19.  * input stream or by any class that implements the data input 
  20.  * interface. See the <code>writeUTF</code> method for the format in 
  21.  * which UTF-8 strings are read and written.
  22.  *
  23.  * @author  Frank Yellin
  24.  * @version 1.5, 03/18/98
  25.  * @see     java.io.DataInput
  26.  * @see     java.io.DataInputStream#readUTF(java.io.DataInput)
  27.  * @see     java.io.IOException
  28.  * @since   JDK1.0
  29.  */
  30. public
  31. class UTFDataFormatException extends IOException {
  32.     /**
  33.      * Constructs a <code>UTFDataFormatException</code> with no detail 
  34.      * message. 
  35.      */
  36.     public UTFDataFormatException() {
  37.     super();
  38.     }
  39.  
  40.     /**
  41.      * Constructs a <code>UTFDataFormatException</code> with the 
  42.      * specified detail message. 
  43.      *
  44.      * @param   s   the detail message.
  45.      */
  46.     public UTFDataFormatException(String s) {
  47.     super(s);
  48.     }
  49. }
  50.