aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/DataInputStream.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-05-20 11:53:11 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-05-20 11:53:11 +0000
commit669e91abfa0d4790724c482cc09b2e2c3e593824 (patch)
tree9277c22b9002ea46879f07db5568e49fc367dec4 /libjava/java/io/DataInputStream.java
parent8d4d9d1911a80652dc826ea85975f2da57d4c0b5 (diff)
downloadgcc-669e91abfa0d4790724c482cc09b2e2c3e593824.zip
gcc-669e91abfa0d4790724c482cc09b2e2c3e593824.tar.gz
gcc-669e91abfa0d4790724c482cc09b2e2c3e593824.tar.bz2
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
Diffstat (limited to 'libjava/java/io/DataInputStream.java')
-rw-r--r--libjava/java/io/DataInputStream.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/io/DataInputStream.java b/libjava/java/io/DataInputStream.java
index 07c3b4c..6b4b1d7 100644
--- a/libjava/java/io/DataInputStream.java
+++ b/libjava/java/io/DataInputStream.java
@@ -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
{