Class XmlDecryptionExtensions
- java.lang.Object
-
- io.github.astrapi69.xml.crypto.file.XmlDecryptionExtensions
-
public final class XmlDecryptionExtensions extends java.lang.ObjectThe classXmlDecryptionExtensionsprovides methods for read an encrypted file and decrypt xml data.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TreadFromFileAsXmlAndHex(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 hexadecimalStringobject.static <T> TreadFromFileAsXmlAndHex(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 hexadecimalStringobject.static <T> TreadFromFileAsXmlAndHex(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 hexadecimalStringobject.
-
-
-
Method Detail
-
readFromFileAsXmlAndHex
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.DecoderExceptionRead from file the data object that was before saved as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
aliases- the aliases for theXStreamobjectselectedFile- the selected file to readallowTypesByWildcard- the allow types by wildcard- Returns:
- the generic data object
- Throws:
java.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
-
readFromFileAsXmlAndHex
public 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.DecoderExceptionRead from file the data object that was before saved as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
xstream- theXStreamobjectaliases- the aliases for theXStreamobjectselectedFile- the selected file to read- Returns:
- the generic data object
- Throws:
java.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
-
readFromFileAsXmlAndHex
public 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.DecoderExceptionRead from file the data object that was before saved as xml and encoded into a hexadecimalStringobject.- Type Parameters:
T- the generic type of the data object- Parameters:
xstream- theXStreamobjectaliases- the aliases for theXStreamobjectselectedFile- the selected file to readcharset- the charset- Returns:
- the generic data object
- Throws:
java.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
-
-