public final class CodeSet
extends java.lang.Object
| Constructor and Description |
|---|
CodeSet(java.lang.String description,
int id,
short[] charsets,
int maxSize,
java.lang.String canonical,
java.lang.String name,
int alignment,
boolean server)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compatible(CodeSet entryA,
CodeSet entryB)
Returns true if two codesets are compatible.
|
static boolean |
compatible(int csA,
int csB)
Returns true if two codesets are compatible.
|
boolean |
forServer()
Return whether the codeset is to be used in server profiles or not.
|
int |
getAlignment()
Return the alignment for this codeset.
|
java.lang.String |
getCanonicalName()
Returns the canonical Java name for the codeset.
|
short[] |
getCharsets()
Return the array of charsets covered by this codeset.
|
java.lang.String |
getDescription()
Return the description of this codeset.
|
int |
getId()
Return the id of this codeset.
|
int |
getMaxSize()
Return the maximum number of bytes used by this codeset.
|
java.lang.String |
getName()
Return the name of this codeset.
|
boolean |
isCompatibleTo(CodeSet to_comp)
Compare this codeset to the specified one.
|
java.lang.String |
toString()
This method is used to create a stringified representation of
an entry.
|
public CodeSet(java.lang.String description,
int id,
short[] charsets,
int maxSize,
java.lang.String canonical,
java.lang.String name,
int alignment,
boolean server)
public int getId()
public java.lang.String getCanonicalName()
public java.lang.String getName()
public java.lang.String getDescription()
public short[] getCharsets()
public int getMaxSize()
public int getAlignment()
public boolean forServer()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isCompatibleTo(CodeSet to_comp)
to_comp - The codest to compare this one to.public static boolean compatible(int csA,
int csB)
csA - codeset id for codeset A.csB - codeset id for codeset B.public static boolean compatible(CodeSet entryA, CodeSet entryB)
entryA - Codeset A.entryB - Codeset B.