public class Stringprep
extends java.lang.Object
| Constructor | Description |
|---|---|
Stringprep() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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.