Contents | Prev | Next | Index

22.31 The Class java.io.UTFDataFormatException

A UTFDataFormatException is thrown to indicate that a problem occurred in converting data from Java modified UTF-8 format. See method readUTF of DataInput (§22.1.15).

public class UTFDataFormatException extends IOException {
	public UTFDataFormatException();
	public UTFDataFormatException(String s);
}

22.31.1 public UTFDataFormatException()

This constructor initializes a newly created UTFDataFormatException with null as its error message string.

22.31.2 public UTFDataFormatException(String s)

This constructor initializes a newly created UTFDataFormatException by saving a reference to the error message string s for later retrieval by the getMessage method (§20.22.3).


Contents | Prev | Next | Index

Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to [email protected]