|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.charcode.BuggyCharacterSet
public class BuggyCharacterSet
This class establishes properties of a character set that is known to the Java VM but not specifically known to Saxon. It avoids using the encoder.canEncode() method because there is a known bug (in JDK 1.4.2) that for some encodings, this returns true for every character. So this version of the class actually attempts to encode the characters, and catches the exception when it fails.
Method Summary | |
---|---|
boolean |
inCharset(int c)
Determine if a character is present in the character set |
static BuggyCharacterSet |
makeCharSet(java.nio.charset.Charset charset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BuggyCharacterSet makeCharSet(java.nio.charset.Charset charset)
public final boolean inCharset(int c)
CharacterSet
inCharset
in interface CharacterSet
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |