2003-05-20 Michael Koch <konqueror@gmx.de>

* java/io/DataInputStream.java
	(convertFromUTF): Merged comment from classpath.
	* java/io/PrintStream.java
	(error_occured): Renamed from error, merged comment from classpath.
	(PrintStream): No need to initialized error.
	(checkError): Replace error with error_occurred.
	(setError): Likewise.

From-SVN: r66997
This commit is contained in:
Michael Koch 2003-05-20 11:53:11 +00:00 committed by Michael Koch
parent 8d4d9d1911
commit 669e91abfa
3 changed files with 22 additions and 6 deletions

View file

@ -755,6 +755,10 @@ public class DataInputStream extends FilterInputStream implements DataInput
((long)(buf [7] & 0xff)));
}
// FIXME: This method should be re-thought. I suspect we have multiple
// UTF-8 decoders floating around. We should use the standard charset
// converters, maybe and adding a direct call into one of the new
// NIO converters for a super-fast UTF8 decode.
static String convertFromUTF (byte[] buf)
throws EOFException, UTFDataFormatException
{