|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.text.StringPrep
public final class StringPrep
StringPrep API implements the StingPrep framework as described by RFC 3454. StringPrep prepares Unicode strings for use in network protocols. Profiles of StingPrep are set of rules and data according to which the Unicode Strings are prepared. Each profiles contains tables which describe how a code point should be treated. The tables are broadly classied into
Field Summary | |
---|---|
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 Summary | |
---|---|
StringPrep(InputStream inputStream)
Creates an StringPrep object after reading the input stream. |
Method Summary | |
---|---|
StringBuffer |
prepare(UCharacterIterator src,
int options)
Prepare the input buffer for use in applications with the given profile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 ValuesConstructor Detail |
---|
public StringPrep(InputStream inputStream) throws IOException
inputStream
- The stream for reading the StringPrep profile binarySun
IOException
Method Detail |
---|
public 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.
ParseException
StringPrepParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |