[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: FYI: InputStreamReader fixlet
From: |
Tom Tromey |
Subject: |
[cp-patches] Patch: FYI: InputStreamReader fixlet |
Date: |
10 Mar 2005 12:32:01 -0700 |
I'm checking this in.
This fixes an indentation buglet in InputStreamReader and also adds
@since to some javadoc.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
* java/io/InputStreamReader.java: Indentation fixlets. Added
'@since' markers.
Index: java/io/InputStreamReader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/InputStreamReader.java,v
retrieving revision 1.20
diff -u -r1.20 InputStreamReader.java
--- java/io/InputStreamReader.java 22 Feb 2005 03:27:34 -0000 1.20
+++ java/io/InputStreamReader.java 10 Mar 2005 19:32:45 -0000
@@ -147,26 +147,29 @@
* Creates an InputStreamReader that uses a decoder of the given
* charset to decode the bytes in the InputStream into
* characters.
+ * @since 1.4
*/
- public InputStreamReader(InputStream in, Charset charset) {
+ public InputStreamReader(InputStream in, Charset charset)
+ {
/* FIXME: InputStream is wrapped in Channel which is read by a
* Reader-implementation for channels. However to fix this we
* need to completely move to NIO-style character
* encoding/decoding.
*/
- this.in = Channels.newReader(Channels.newChannel(in),
charset.newDecoder(), -1);
-
+ this.in = Channels.newReader(Channels.newChannel(in), charset.newDecoder(),
+ -1);
encoding = charset.name();
}
/**
* Creates an InputStreamReader that uses the given charset decoder
* to decode the bytes in the InputStream into characters.
+ * @since 1.4
*/
- public InputStreamReader(InputStream in, CharsetDecoder decoder) {
+ public InputStreamReader(InputStream in, CharsetDecoder decoder)
+ {
// FIXME: see address@hidden InputStreamReader(InputStream, Charset)
this.in = Channels.newReader(Channels.newChannel(in), decoder, -1);
-
encoding = decoder.charset().name();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: FYI: InputStreamReader fixlet,
Tom Tromey <=