java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.UTFDataFormatException
public class UTFDataFormatException
在数据输入流中或由实现该数据输入接口的任何类中以 UTF-8 修改版格式读取错误字符串时,抛出此异常。有关读取和写入 UTF-8 修改版字符串的格式,请参阅 DataInput 类的描述。
DataInput,
DataInputStream.readUTF(java.io.DataInput),
IOException,
序列化表格
| 构造方法摘要 | |
|---|---|
UTFDataFormatException() 构造用 null 作为其错误详细消息的 UTFDataFormatException。 |
|
UTFDataFormatException(String s) 构造带有指定详细消息的 UTFDataFormatException。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public UTFDataFormatException()
null 作为其错误详细消息的
UTFDataFormatException。
public UTFDataFormatException(String s)
UTFDataFormatException。然后可以通过
java.lang.Throwable 类的
Throwable.getMessage() 方法获取字符串
s。
s - 详细消息。