mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 15:39:53 +08:00
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:
parent
30df932c23
commit
a59159654b
@ -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
|
||||
|
@ -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);
|
||||
|
@ -319,6 +319,11 @@ public abstract class CharsetEncoder
|
||||
return this;
|
||||
}
|
||||
|
||||
public CodingErrorAction unmappableCharacterAction ()
|
||||
{
|
||||
return unmappableCharacterAction;
|
||||
}
|
||||
|
||||
public final CharsetEncoder onUnmappableCharacter
|
||||
(CodingErrorAction newAction)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user