Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
UTFDataFormatException signals that a malformed modified UTF-8 string has been read.
It's a subclass of IOException and provides constructors to specify error details.
The exception is thrown by classes implementing the DataInput interface when encountering invalid UTF-8 data.
Refer to the DataInput documentation for the correct modified UTF-8 format.
public class
UTFDataFormatException
extends IOException
Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface.
See the
DataInput
class description for the format in
which modified UTF-8 strings are read and written.
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
Constructs a UTFDataFormatException with the
specified detail message. The string s can be
retrieved later by the
Throwable.getMessage()
method of class java.lang.Throwable.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],[]]