This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] java.nio -- important, please test on your platform


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I wrote this little patch to build the whole java.nio currently in
> CVS. This patch makes java.nio's API nearly 100% ready (2 methods
> in java.nio.charset are still missing).

The API is now 100%, thanks to Jesse Rosenstock for this patch.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+TgteWSOgCCdjSDsRAkAeAKCM5JDZVxvsNiVgJwWqWjdRda8dUgCglFZz
mFoDViCxexe5PsQibLA0v0Q=
=NXE/
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1706
diff -u -r1.1706 ChangeLog
--- ChangeLog	15 Feb 2003 09:21:53 -0000	1.1706
+++ ChangeLog	15 Feb 2003 09:39:12 -0000
@@ -1,3 +1,10 @@
+2003-02-15  Jesse Rosenstock  <jmr@ugcs.caltech.edu>
+
+	* java/nio/charset/Charset.java
+	(isRegistered): Fixed method args and implementation.
+	* java/nio/charset/CharsetEncoder.java
+	(unmappableCharacterAction): New method.
+
 2003-02-15  Michael Koch  <konqueror@gmx.de>
 
 	* java/awt/CheckboxMenuItem.java
Index: java/nio/charset/Charset.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/charset/Charset.java,v
retrieving revision 1.3
diff -u -r1.3 Charset.java
--- java/nio/charset/Charset.java	18 Nov 2002 14:15:16 -0000	1.3
+++ java/nio/charset/Charset.java	15 Feb 2003 09:39:12 -0000
@@ -187,9 +187,10 @@
     return canonicalName;
   }
 
-  public final boolean isRegistered (String name)
+  public final boolean isRegistered ()
   {
-    return !name.startsWith ("x-") && !name.startsWith ("X-");
+    return (!canonicalName.startsWith ("x-")
+            && !canonicalName.startsWith ("X-"));
   }
 
   public abstract boolean contains (Charset cs);
Index: java/nio/charset/CharsetEncoder.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/charset/CharsetEncoder.java,v
retrieving revision 1.1
diff -u -r1.1 CharsetEncoder.java
--- java/nio/charset/CharsetEncoder.java	13 Nov 2002 12:21:26 -0000	1.1
+++ java/nio/charset/CharsetEncoder.java	15 Feb 2003 09:39:12 -0000
@@ -319,6 +319,11 @@
     return this;
   }
 
+  public CodingErrorAction unmappableCharacterAction ()
+  {
+    return unmappableCharacterAction;
+  }
+
   public final CharsetEncoder onUnmappableCharacter
     (CodingErrorAction newAction)
   {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]