Commit a5915965 by Jesse Rosenstock Committed by Michael Koch

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
parent 30df932c
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> 2003-02-15 Michael Koch <konqueror@gmx.de>
* java/awt/CheckboxMenuItem.java * java/awt/CheckboxMenuItem.java
......
...@@ -187,9 +187,10 @@ public abstract class Charset implements Comparable ...@@ -187,9 +187,10 @@ public abstract class Charset implements Comparable
return canonicalName; 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); public abstract boolean contains (Charset cs);
......
...@@ -319,6 +319,11 @@ public abstract class CharsetEncoder ...@@ -319,6 +319,11 @@ public abstract class CharsetEncoder
return this; return this;
} }
public CodingErrorAction unmappableCharacterAction ()
{
return unmappableCharacterAction;
}
public final CharsetEncoder onUnmappableCharacter public final CharsetEncoder onUnmappableCharacter
(CodingErrorAction newAction) (CodingErrorAction newAction)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment