阅读(4251) (0)

鸿蒙OS UTFDataFormatException

2022-10-17 10:02:45 更新

UTFDataFormatException

java.lang.Object

|---java.lang.Throwable

|---|---java.lang.Exception

|---|---|---java.io.IOException

|---|---|---|---java.io.UTFDataFormatException

public class UTFDataFormatException
extends IOException

表示已在数据输入流中或任何实现数据输入接口的类中读取了修改后的 UTF-8 格式的格式错误的字符串。

Since:

JDK1.0

构造函数摘要

构造函数 描述
UTFDataFormatException() 构造一个以 null 作为其错误详细消息的 UTFDataFormatException。
UTFDataFormatException(String s) 构造带有指定详细消息的 UTFDataFormatException。

方法总结

从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从类 java.lang.Throwable 继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

构造函数详细信息

UTFDataFormatException

public UTFDataFormatException()

构造一个以 null 作为其错误详细消息的 UTFDataFormatException。

UTFDataFormatException

public UTFDataFormatException(String s)

构造带有指定详细消息的 UTFDataFormatException。 字符串 s 可以稍后通过 java.lang.Throwable 类的 Throwable.getMessage() 方法检索。

参数:

参数名称 参数描述
s 详细信息。