|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjp.co.jprs.idnkit.IDNA2008
public final class IDNA2008
An instance of IDNA2008 class represents IDNA2008 version of IDNA conversion context. IDNA2008 instances are created using IDNAFactory class, like 'IDNAFactory.create(IDNAFactory.IDNA2008)'.
| Field Summary | |
|---|---|
static int |
ASCLOWER
Atomic ASCLOWER action. |
static int |
BIDICHECK
Atomic BIDICHECK action. |
static int |
COMBCHECK
Atomic COMBCHECK action. |
static int |
CTXJCHECK
Atomic CTXJCHECK action. |
static int |
CTXOCHECK
Atomic CTXOCHECK action. |
static int |
CTXOLITECHECK
Atomic CTXOLITECHECK action. |
static int |
HYPHCHECK
Atomic HYPHCHECK action. |
static int |
IDNCONV
Atomic IDNCONV action. |
static int |
LENCHECK
Atomic LENCHECK action. |
static int |
LOCALCHECK
Atomic LOCALCHECK action. |
static int |
MAP
Atomic MAP action. |
static int |
NFCCHECK
Atomic NFCCHECK action. |
static int |
PREFCHECK
Atomic PREFCHECK action. |
static int |
PROHCHECK
Atomic PROHCHECK action. |
static int |
RTCHECK
Atomic RTCHECK action. |
static int |
RTCONV
Atomic RTCONV action. |
static int |
UNASCHECK
Atomic UNASCHECK action. |
static int |
UNDOIFERR
UNDOIFERR special action. |
| Fields inherited from interface jp.co.jprs.idnkit.IDNA |
|---|
CHECK_LOOKUP, CHECK_REGIST, COMPARE_LOOKUP, COMPARE_REGIST, DECODE_LOOKUP, DECODE_REGIST, ENCODE_LOOKUP, ENCODE_REGIST |
| Method Summary | |
|---|---|
boolean |
check(int actions,
java.lang.String name)
Validates a domain name. |
boolean |
check(java.lang.String name)
Validates a domain name. |
boolean |
compare(int actions1,
java.lang.String name1,
int actions2,
java.lang.String name2)
Compares two domain names. |
boolean |
compare(int actions,
java.lang.String name1,
java.lang.String name2)
Compares two domain names. |
boolean |
compare(java.lang.String name1,
java.lang.String name2)
Compares two domain names. |
java.lang.String |
decode(int actions,
java.lang.String name)
Converts a domain name 'name' to UTF-8 and returns the result. |
java.lang.String |
decode(java.lang.String name)
Converts a domain name 'name' to UTF-8 and returns the result. |
java.lang.String |
encode(int actions,
java.lang.String name)
Converts a domain name 'name' to ASCII and returns the result. |
java.lang.String |
encode(java.lang.String name)
Converts a domain name 'name' to ASCII, and returns the result. |
java.lang.String |
getIdnaTableVersion()
Gets a version of IDNA tables the context instance supports. |
java.lang.String |
getLibIDNVersion()
Gets a version of idnkit library. |
java.lang.String |
getUnicodeVersion()
Gets a version of Unicode tables the context instance supports. |
java.lang.String |
getVersion()
Returns version information. |
void |
init()
Initializes the conversion context instance. |
void |
init(java.lang.String filename)
Initializes the conversion context instance. |
void |
init(java.lang.String[] conf)
Initializes the conversion context instance. |
void |
setLocalCheckFile(java.lang.String filename)
Reads a code point set for local-check from a file 'filename'. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAP
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int ASCLOWER
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int RTCONV
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int PROHCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int UNASCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int NFCCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int PREFCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int HYPHCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int COMBCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int CTXJCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int CTXOCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int CTXOLITECHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int BIDICHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int LOCALCHECK
encode(int actions, String name),
decode(int actions, String name),
Constant Field Valuespublic static final int IDNCONV
#decode(int actions, String name),
Constant Field Valuespublic static final int LENCHECK
#decode(int actions, String name),
Constant Field Valuespublic static final int RTCHECK
#decode(int actions, String name),
Constant Field Valuespublic static final int UNDOIFERR
#decode(int actions, String name),
Constant Field Values| Method Detail |
|---|
public void init()
throws IDNException
IDNA
init in interface IDNAIDNException - Initialization failed.
public void init(java.lang.String filename)
throws IDNException
IDNA
init in interface IDNAfilename - Configuration file to be read.
IDNException - Initialization failed.
public void init(java.lang.String[] conf)
throws IDNException
IDNA
init in interface IDNAconf - Configurations to be set.
IDNException - Initialization failed.
public void setLocalCheckFile(java.lang.String filename)
throws IDNException
IDNA
setLocalCheckFile in interface IDNAfilename - Code point set file to be read.
IDNException - Failed to read the file.
public java.lang.String encode(java.lang.String name)
throws IDNException
IDNA
encode in interface IDNAname - A domain name to be encoded.
IDNException - Conversion failed.
public java.lang.String encode(int actions,
java.lang.String name)
throws IDNException
IDNA
encode in interface IDNAactions - An action value to encode 'name'.name - A domain name to be encoded.
IDNException - Conversion failed.
public java.lang.String decode(java.lang.String name)
throws IDNException
IDNA
decode in interface IDNAname - A domain name to be decoded.
IDNException - Conversion failed.
public java.lang.String decode(int actions,
java.lang.String name)
throws IDNException
IDNA
decode in interface IDNAactions - An action value to decode 'name'.name - A domain name to be decoded.
IDNException - Conversion failed.
public boolean compare(java.lang.String name1,
java.lang.String name2)
throws IDNException
IDNA
compare in interface IDNAname1 - A domain name #1.name2 - A domain name #2.
IDNException - Conversion of domain names failed.
public boolean compare(int actions,
java.lang.String name1,
java.lang.String name2)
throws IDNException
IDNA
compare in interface IDNAactions - An Action value to encode 'name1' and 'name2'.name1 - A domain name #1.name2 - A domain name #2.
IDNException - Conversion of domain names failed.
public boolean compare(int actions1,
java.lang.String name1,
int actions2,
java.lang.String name2)
throws IDNException
IDNA
compare in interface IDNAactions1 - An Action value to encode 'name1'.name1 - A domain name #1.actions2 - An Action value to encode 'name2'.name2 - A domain name #2.
IDNException - Conversion of domain names failed.
public boolean check(java.lang.String name)
throws IDNException
IDNA
check in interface IDNAname - A domain name to be validated.
IDNException - Conversion of domain names failed.
public boolean check(int actions,
java.lang.String name)
throws IDNException
IDNA
check in interface IDNAactions - An Action value to encode 'name'.name - A domain name to be validated.
IDNException - Conversion of domain names failed.public java.lang.String getUnicodeVersion()
IDNA
getUnicodeVersion in interface IDNApublic java.lang.String getIdnaTableVersion()
IDNA
getIdnaTableVersion in interface IDNApublic java.lang.String getLibIDNVersion()
IDNA
getLibIDNVersion in interface IDNApublic java.lang.String getVersion()
IDNA
getVersion in interface IDNA
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||