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.

From-SVN: r62934
This commit is contained in:
Jesse Rosenstock 2003-02-15 09:39:51 +00:00 committed by Michael Koch
parent 30df932c23
commit a59159654b
3 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -187,9 +187,10 @@ public abstract class Charset implements Comparable
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);

View File

@ -319,6 +319,11 @@ public abstract class CharsetEncoder
return this;
}
public CodingErrorAction unmappableCharacterAction ()
{
return unmappableCharacterAction;
}
public final CharsetEncoder onUnmappableCharacter
(CodingErrorAction newAction)
{