|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.complexscripts.util.UTF32
public final class UTF32
UTF32 related utilities.
This work was originally authored by Glenn Adams (gadams@apache.org).
Method Summary | |
---|---|
static java.lang.String |
fromUTF32(java.lang.Integer[] sa)
Convert a Unicode scalar array (UTF-32) a Java string (UTF-16). |
static java.lang.Integer[] |
toUTF32(java.lang.String s,
int substitution,
boolean errorOnSubstitution)
Convert Java string (UTF-16) to a Unicode scalar array (UTF-32). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Integer[] toUTF32(java.lang.String s, int substitution, boolean errorOnSubstitution) throws java.lang.IllegalArgumentException
s
- input stringsubstitution
- value to substitute for ill-formed surrogateerrorOnSubstitution
- throw runtime exception (IllegalArgumentException) in
case this argument is true and a substitution would be attempted
java.lang.IllegalArgumentException
- if substitution required and errorOnSubstitution
is not falsepublic static java.lang.String fromUTF32(java.lang.Integer[] sa) throws java.lang.IllegalArgumentException
sa
- input scalar array
java.lang.IllegalArgumentException
- if an input scalar value is illegal,
e.g., a surrogate or out of range
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |