Class UtfHelpper
- java.lang.Object
-
- org.apache.xml.security.c14n.implementations.UtfHelpper
-
public final class UtfHelpper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
OLD_UTF8
Revert to the old behavior (version 2 or before), i.e.
-
Constructor Summary
Constructors Modifier Constructor Description private
UtfHelpper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]
getStringInUtf8(java.lang.String str)
static void
writeByte(java.lang.String str, java.io.OutputStream out, java.util.Map<java.lang.String,byte[]> cache)
static void
writeCharToUtf8(char c, java.io.OutputStream out)
Deprecated.static void
writeCodePointToUtf8(int c, java.io.OutputStream out)
static void
writeStringToUtf8(java.lang.String str, java.io.OutputStream out)
-
-
-
Field Detail
-
OLD_UTF8
private static final boolean OLD_UTF8
Revert 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.
-
-
Method Detail
-
writeByte
public static void writeByte(java.lang.String str, java.io.OutputStream out, java.util.Map<java.lang.String,byte[]> cache) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCodePointToUtf8
public static void writeCodePointToUtf8(int c, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCharToUtf8
@Deprecated public static void writeCharToUtf8(char c, java.io.OutputStream out) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
writeStringToUtf8
public static void writeStringToUtf8(java.lang.String str, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
getStringInUtf8
public static byte[] getStringInUtf8(java.lang.String str)
-
-