public final class StringPrep extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_UNASSIGNED
Option to allow processing of unassigned code points in the input
|
static int |
DEFAULT
Option to prohibit processing of unassigned code points in the input
|
| Constructor and Description |
|---|
StringPrep(InputStream inputStream)
Creates an StringPrep object after reading the input stream.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
prepare(UCharacterIterator src,
int options)
Prepare the input buffer for use in applications with the given profile.
|
public static final int DEFAULT
prepare(com.ibm.icu.text.UCharacterIterator, int),
Constant Field Valuespublic static final int ALLOW_UNASSIGNED
prepare(com.ibm.icu.text.UCharacterIterator, int),
Constant Field Valuespublic StringPrep(InputStream inputStream) throws IOException
inputStream - The stream for reading the StringPrep profile binarySunIOExceptionpublic StringBuffer prepare(UCharacterIterator src, int options) throws StringPrepParseException
src - A UCharacterIterator object containing the source stringoptions - A bit set of options:
- StringPrep.NONE Prohibit processing of unassigned code points in the input
- StringPrep.ALLOW_UNASSIGNED Treat the unassigned code points are in the input
as normal Unicode code points.ParseExceptionStringPrepParseExceptionCopyright (c) 2007 IBM Corporation and others.