- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.UTFDataFormatException
-
- All Implemented Interfaces:
-
Serializable
public class UTFDataFormatException extends IOException
表示modified UTF-8格式的格式不正确的字符串已被读入数据输入流或实现数据输入接口的任何类。 有关读取和写入修改的UTF-8字符串的格式,请参阅DataInput类描述。- 从以下版本开始:
- 1.0
- 另请参见:
-
DataInput,DataInputStream.readUTF(java.io.DataInput),IOException, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 UTFDataFormatException()构造UTFDataFormatException其中包含null作为其错误详细消息。UTFDataFormatException(String s)构造具有指定详细消息的UTFDataFormatException。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
UTFDataFormatException
public UTFDataFormatException()
构造一个UTFDataFormatException其中包含null作为其错误详细消息。
-
UTFDataFormatException
public UTFDataFormatException(String s)
构造具有指定详细消息的UTFDataFormatException。 字符串s可以稍后由检索类的方法Throwable.getMessage()java.lang.Throwable。- 参数
-
s- 详细信息。
-
-