* java/nio/charset/Charset.java
(isRegistered): Fixed method args and implementation.
* java/nio/charset/CharsetEncoder.java
(unmappableCharacterAction): New method.
From-SVN: r62934
+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
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);
return this;
}
+ public CodingErrorAction unmappableCharacterAction ()
+ {
+ return unmappableCharacterAction;
+ }
+
public final CharsetEncoder onUnmappableCharacter
(CodingErrorAction newAction)
{