Package java.io
Class UTFDataFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.UTFDataFormatException
-
- All Implemented Interfaces:
Serializable
public class UTFDataFormatException extends IOException
Signals that an incorrectly encoded UTF-8 string has been encountered, most likely while reading someDataInputStream.- See Also:
DataInputStream.readUTF(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UTFDataFormatException()Constructs a newUTFDataFormatExceptionwith its stack trace filled in.UTFDataFormatException(String detailMessage)Constructs a newUTFDataFormatExceptionwith its stack trace and detail message filled in.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UTFDataFormatException
public UTFDataFormatException()
Constructs a newUTFDataFormatExceptionwith its stack trace filled in.
-
UTFDataFormatException
public UTFDataFormatException(String detailMessage)
Constructs a newUTFDataFormatExceptionwith its stack trace and detail message filled in.- Parameters:
detailMessage- the detail message for this exception.
-
-