Class XmlDecryptionExtensions
- java.lang.Object
-
- io.github.astrapi69.xml.crypto.file.XmlDecryptionExtensions
-
public final class XmlDecryptionExtensions extends java.lang.Object
The classXmlDecryptionExtensions
provides 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> 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 hexadecimalString
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 hexadecimalString
object.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 hexadecimalString
object.
-
-
-
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.DecoderException
Read from file the data object that was before saved as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
aliases
- the aliases for theXStream
objectselectedFile
- 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.DecoderException
Read from file the data object that was before saved as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
xstream
- theXStream
objectaliases
- the aliases for theXStream
objectselectedFile
- 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.DecoderException
Read from file the data object that was before saved as xml and encoded into a hexadecimalString
object.- Type Parameters:
T
- the generic type of the data object- Parameters:
xstream
- theXStream
objectaliases
- the aliases for theXStream
objectselectedFile
- 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
-
-