| java.lang.Object com.hp.hpl.jena.util.CharEncoding
CharEncoding | abstract public class CharEncoding (Code) | | This class provides a number of static methods which interact with
java.nio.charset.Charset to analyze and transform the strings identifing
character encodings.
author: Jeremy J. Carroll |
Method Summary | |
public static CharEncoding | create(String enc) Create a new CharacterEncoding object,
given a name of a character encoding
identifying it.
Parameters: enc - A name. | abstract public boolean | isIANA() Returns true if this charset
registered at IANA. | abstract public boolean | isInNIO() Returns true if this charset is supported by
java.nio.charset.Charset. | public String | name() Gives the canonical name for this charset. | abstract public String | warningMessage() If
CharEncoding.isIANA or
CharEncoding.isInNIO return false, this returns a suggested warning
message. |
create | public static CharEncoding create(String enc)(Code) | | Create a new CharacterEncoding object,
given a name of a character encoding
identifying it.
Parameters: enc - A name. The corresponding CharacterEncoding object. |
isIANA | abstract public boolean isIANA()(Code) | | Returns true if this charset
registered at IANA.
Since the registry may change, the results of this
method may not be entirely up-to-date,
and draws from the knowledge in
the Java java.nio.charset.Charset class.
If
CharEncoding.isInNIO() returns false, no information
is known, and this method returns false.
true if this character encoding is IANA registered. |
isInNIO | abstract public boolean isInNIO()(Code) | | Returns true if this charset is supported by
java.nio.charset.Charset.
Without this support
CharEncoding.isIANA() does not work correctly.
true if this charset is supported byjava.nio.charset.Charset. |
|
|