1 |
/* UTFDataFormatException.java -- Bad format in UTF data |
/* UTFDataFormatException.java -- thrown on bad format in UTF data |
2 |
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
38 |
|
|
39 |
package java.io; |
package java.io; |
40 |
|
|
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 |
|
|
* "The Java Language Specification", ISBN 0-201-63451-1 |
|
|
* Status: Complete to 1.1. |
|
|
*/ |
|
|
|
|
41 |
/** |
/** |
42 |
* When reading a UTF string from an input stream, this exception is thrown |
* When reading a UTF string from an input stream, this exception is thrown |
43 |
* to indicate that the data read is invalid. |
* to indicate that the data read is invalid. |
44 |
* |
* |
45 |
* @version 0.0 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
46 |
* |
* @author Tom Tromey <tromey@cygnus.com> |
47 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @see DataInput |
48 |
* @author Tom Tromey <tromey@cygnus.com> |
* @see DataInputStream#readUTF(DataInput) |
49 |
* @date September 24, 1998 |
* @status updated to 1.4 |
|
*/ |
|
|
public class UTFDataFormatException extends IOException |
|
|
{ |
|
|
|
|
|
/* |
|
|
* Constructors |
|
50 |
*/ |
*/ |
51 |
|
public class UTFDataFormatException extends IOException |
|
/** |
|
|
* Create a new UTFDataFormatException without a descriptive error message |
|
|
*/ |
|
|
public |
|
|
UTFDataFormatException() |
|
|
{ |
|
|
super(); |
|
|
} |
|
|
|
|
|
/*************************************************************************/ |
|
|
|
|
|
/** |
|
|
* Create a new UTFDataFormatException with a descriptive error message String |
|
|
* |
|
|
* @param message The descriptive error message |
|
|
*/ |
|
|
public |
|
|
UTFDataFormatException(String message) |
|
52 |
{ |
{ |
53 |
super(message); |
/** |
54 |
} |
* Compatible with JDK 1.0+. |
55 |
|
*/ |
56 |
|
private static final long serialVersionUID = 420743449228280612L; |
57 |
|
|
58 |
|
/** |
59 |
|
* Create a new UTFDataFormatException without a descriptive error message. |
60 |
|
*/ |
61 |
|
public UTFDataFormatException() |
62 |
|
{ |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* Create a new UTFDataFormatException with a descriptive error message. |
67 |
|
* |
68 |
|
* @param message the descriptive error message |
69 |
|
*/ |
70 |
|
public UTFDataFormatException(String message) |
71 |
|
{ |
72 |
|
super(message); |
73 |
|
} |
74 |
} // class UTFDataFormatException |
} // class UTFDataFormatException |
|
|
|