APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xml.internal.security.c14n.implementations

public final Class UtfHelpper

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.security.AccessController, .PrivilegedAction, java.util.Map

Field Summary

Modifier and TypeField and Description
private static final boolean
OLD_UTF8

Revert to the old behavior (version 2 or before), i.e. surrogate pairs characters becomes '??' in output.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static byte[]
public static void
writeByte(final String str, final OutputStream out, Map<String, byte[]> cache)

public static void
writeCodePointToUtf8(final int c, final OutputStream out)

public static void
writeStringToUtf8(final String str, final OutputStream out)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OLD_UTF8back to summary
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 com.sun.org.apache.xml.internal.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.

Annotations
@SuppressWarnings:removal

Constructor Detail

UtfHelpperback to summary
private UtfHelpper()

Method Detail

getStringInUtf8back to summary
public static byte[] getStringInUtf8(final String str)
writeByteback to summary
public static void writeByte(final String str, final OutputStream out, Map<String, byte[]> cache) throws IOException
writeCodePointToUtf8back to summary
public static void writeCodePointToUtf8(final int c, final OutputStream out) throws IOException
writeStringToUtf8back to summary
public static void writeStringToUtf8(final String str, final OutputStream out) throws IOException