org.enhydra.xml.io
Class ISO8859CharacterSet

java.lang.Object
  |
  +--org.enhydra.xml.io.CharacterSet
        |
        +--org.enhydra.xml.io.ISO8859CharacterSet

class ISO8859CharacterSet
extends CharacterSet

Information and operations associated with the ISO-8859-* group of character sets.


Constructor Summary
ISO8859CharacterSet(String name, int charSize, String mimePreferred, String[] aliases)
          Constructor
 
Method Summary
 boolean isValid(char ch)
          Basic implementation for ISO 8859 character sets.
 boolean sameValidCharRange(CharacterSet otherSet)
          Determine if another character set has the same valid range of character codes as this character set.
 
Methods inherited from class org.enhydra.xml.io.CharacterSet
getAliases, getCharSize, getMaxCharValue, getMIMEPreferred, getName, isCompatible, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISO8859CharacterSet

public ISO8859CharacterSet(String name,
                           int charSize,
                           String mimePreferred,
                           String[] aliases)
Constructor
Method Detail

isValid

public boolean isValid(char ch)
Basic implementation for ISO 8859 character sets. Considers all characters in the range of 0x0081 through 0x0099 to be invalid. Note: Acdcording to the specs, these characters are valid. But they are control characters and rarely ever used on purpose. In most cases, these characters are encountered by confusing the Windows CP 1252 character set with ISO-8859-1.
Overrides:
isValid in class CharacterSet
See Also:
CharacterSet.isValid(char)

sameValidCharRange

public boolean sameValidCharRange(CharacterSet otherSet)
Description copied from class: CharacterSet
Determine if another character set has the same valid range of character codes as this character set. That is, will isValid() return the same value for any arbitrary unicode character.

WARNING: This is only well implemented for a few character sets on an as-needed basis; the rest just go by the character size.

Overrides:
sameValidCharRange in class CharacterSet
See Also:
CharacterSet.isCompatible(org.enhydra.xml.io.CharacterSet)


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.