Name

UTFDataFormatException

Synopsis

This exception signals that an incorrect sequence of bytes has been found when reading a byte stream encoded in UTF-8. The UTF-8 encoding allows 16-bit Unicode characters to be sent in an 8-bit stream, where characters with values in the range 0-127, which are the most commonly used in Western locales, occupy only a single byte. This class is the same as its J2SE equivalent, apart from its inability to be serialized.

                  Thrown By
public class UTFDataFormatException extends IOException {  
// Public Constructors
   public UTFDataFormatException();  
   public UTFDataFormatException( String s);  
}

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.