Class UtfHelpper
java.lang.Object
org.apache.xml.security.c14n.implementations.UtfHelpper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
Revert to the old behavior (version 2 or before), i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getStringInUtf8
(String str) static void
writeByte
(String str, OutputStream out, Map<String, byte[]> cache) static void
writeCharToUtf8
(char c, OutputStream out) Deprecated.static void
writeCodePointToUtf8
(int c, OutputStream out) static void
writeStringToUtf8
(String str, OutputStream out)
-
Field Details
-
OLD_UTF8
private static final boolean OLD_UTF8Revert to the old behavior (version 2 or before), i.e. surrogate pairs characters becomes '??' in output. Set system property org.apache.xml.security.c14n.oldUtf8=true if you want to verify signatures generated by version 2 or before that contains 32 bit chars in the XML document.
-
-
Constructor Details
-
UtfHelpper
private UtfHelpper()
-
-
Method Details
-
writeByte
public static void writeByte(String str, OutputStream out, Map<String, byte[]> cache) throws IOException- Throws:
IOException
-
writeCodePointToUtf8
- Throws:
IOException
-
writeCharToUtf8
Deprecated.- Throws:
IOException
-
writeStringToUtf8
- Throws:
IOException
-
getStringInUtf8
-