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
3 changed files with 15 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue