鴻蒙OS UTFDataFormatException

2022-10-27 11:06 更新

UTFDataFormatException

java.lang.Object

|---java.lang.Throwable

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

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

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

public class UTFDataFormatException
extends IOException

表示已在數(shù)據(jù)輸入流中或任何實現(xiàn)數(shù)據(jù)輸入接口的類中讀取了修改后的 UTF-8 格式的格式錯誤的字符串。

Since:

JDK1.0

構造函數(shù)摘要

構造函數(shù) 描述
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

構造函數(shù)詳細信息

UTFDataFormatException

public UTFDataFormatException()

構造一個以 null 作為其錯誤詳細消息的 UTFDataFormatException。

UTFDataFormatException

public UTFDataFormatException(String s)

構造帶有指定詳細消息的 UTFDataFormatException。 字符串 s 可以稍后通過 java.lang.Throwable 類的 Throwable.getMessage() 方法檢索。

參數(shù):

參數(shù)名稱 參數(shù)描述
s 詳細信息。
以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號