[4702] in java-interest

home help back first fref pref prev next nref lref last post

readUTF() and writeUTF() methods

daemon@ATHENA.MIT.EDU (David Flanagan)
Thu Jan 11 10:48:18 1996

Date: Thu, 11 Jan 1996 08:54:56 -0500
From: David Flanagan <david@ora.com>
To: java-interest@java.sun.com


Has anyone tried out the DataInputStream.readUTF() and
DataOutputStream.writeUTF() methods?

From the source, it looks like readUTF() and writeUTF() methods expect
to find an unsigned short that indicates the number of bytes that follow
in the UTF string.  As far as I can tell from the UTF standards I've
read, this is not part of the standard.  Also, it seems to obviously
violate some of the features of UTF, such as that all ASCII bytes are
actually ASCII characters.

Can anyone clear this up?

	David Flanagan
	O'Reilly & Associates
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post