|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.inet.encoding.Stringprep
public class Stringprep
This class offers static methods for preparing internationalized strings. It supports the following stringprep profiles:
| Constructor Summary | |
|---|---|
Stringprep()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
nameprep(java.lang.String input)
Preps a name according to the Stringprep profile defined in RFC3491. |
static java.lang.String |
nameprep(java.lang.String input,
boolean allowUnassigned)
Preps a name according to the Stringprep profile defined in RFC3491. |
static java.lang.String |
nodeprep(java.lang.String input)
Preps a node name according to the Stringprep profile defined in RFC3920. |
static java.lang.String |
nodeprep(java.lang.String input,
boolean allowUnassigned)
Preps a node name according to the Stringprep profile defined in RFC3920. |
static java.lang.String |
resourceprep(java.lang.String input)
Preps a resource name according to the Stringprep profile defined in RFC3920. |
static java.lang.String |
resourceprep(java.lang.String input,
boolean allowUnassigned)
Preps a resource name according to the Stringprep profile defined in RFC3920. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stringprep()
| Method Detail |
|---|
public static java.lang.String nameprep(java.lang.String input)
throws StringprepException,
java.lang.NullPointerException
input - the name to prep.
StringprepException - If the name cannot be prepped with
this profile.
java.lang.NullPointerException - If the name is null.
public static java.lang.String nameprep(java.lang.String input,
boolean allowUnassigned)
throws StringprepException,
java.lang.NullPointerException
input - the name to prep.allowUnassigned - true if the name may contain unassigned
code points.
StringprepException - If the name cannot be prepped with
this profile.
java.lang.NullPointerException - If the name is null.
public static java.lang.String nodeprep(java.lang.String input)
throws StringprepException,
java.lang.NullPointerException
input - the node name to prep.
StringprepException - If the node name cannot be prepped
with this profile.
java.lang.NullPointerException - If the node name is null.
public static java.lang.String nodeprep(java.lang.String input,
boolean allowUnassigned)
throws StringprepException,
java.lang.NullPointerException
input - the node name to prep.allowUnassigned - true if the node name may contain
unassigned code points.
StringprepException - If the node name cannot be prepped
with this profile.
java.lang.NullPointerException - If the node name is null.
public static java.lang.String resourceprep(java.lang.String input)
throws StringprepException,
java.lang.NullPointerException
input - the resource name to prep.
StringprepException - If the resource name cannot be prepped
with this profile.
java.lang.NullPointerException - If the resource name is null.
public static java.lang.String resourceprep(java.lang.String input,
boolean allowUnassigned)
throws StringprepException,
java.lang.NullPointerException
input - the resource name to prep.allowUnassigned - true if the resource name may contain
unassigned code points.
StringprepException - If the resource name cannot be prepped
with this profile.
java.lang.NullPointerException - If the resource name is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||