public final class XmlDecryptionExtensions
extends java.lang.Object
XmlDecryptionExtensions provides methods for read an encrypted file and decrypt
xml data.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
readFromFileAsXmlAndHex(java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile,
java.lang.String... allowTypesByWildcard)
Read from file the data object that was before saved as xml and encoded into a hexadecimal
String object. |
static <T> T |
readFromFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile)
Read from file the data object that was before saved as xml and encoded into a hexadecimal
String object. |
static <T> T |
readFromFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile,
java.lang.String charset)
Read from file the data object that was before saved as xml and encoded into a hexadecimal
String object. |
public static <T> T readFromFileAsXmlAndHex(java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile,
java.lang.String... allowTypesByWildcard)
throws java.io.IOException,
org.apache.commons.codec.DecoderException
String object.T - the generic type of the data objectaliases - the aliases for the XStream objectselectedFile - the selected file to readallowTypesByWildcard - the allow types by wildcardjava.io.IOException - Signals that an I/O exception has occurred.org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is suppliedpublic static <T> T readFromFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile)
throws java.io.IOException,
org.apache.commons.codec.DecoderException
String object.T - the generic type of the data objectxstream - the XStream objectaliases - the aliases for the XStream objectselectedFile - the selected file to readjava.io.IOException - Signals that an I/O exception has occurred.org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is suppliedpublic static <T> T readFromFileAsXmlAndHex(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases,
java.io.File selectedFile,
java.lang.String charset)
throws java.io.IOException,
org.apache.commons.codec.DecoderException
String object.T - the generic type of the data objectxstream - the XStream objectaliases - the aliases for the XStream objectselectedFile - the selected file to readcharset - the charsetjava.io.IOException - Signals that an I/O exception has occurred.org.apache.commons.codec.DecoderException - is thrown if an odd number or illegal of characters is supplied