Package be.business.connector.core.utils
Class MarshallerHelper<X,Y>
- java.lang.Object
-
- be.business.connector.core.utils.MarshallerHelper<X,Y>
-
public class MarshallerHelper<X,Y> extends Object
-
-
Constructor Summary
Constructors Constructor Description MarshallerHelper(Class<X> unmarshallClass, Class<Y> marshallClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarsh(Y data)XtoObject(byte[] data)XtoObject(InputStream inputStream)byte[]toXMLByteArray(Y data)Xunmarsh(byte[] data)Xunmarsh(String data)XunmarshProductFilter(byte[] data)XunmarshSystemConfiguration(byte[] data)byte[]unsealWithKey(byte[] data, Key symmKey)XunsealWithSymmKey(byte[] data, Key symmKey)static voidwithoutXSDValidation(Runnable task)voidwritePrescriptionToFile(byte[] unsealByteWithSymmKeyDecodeAndDecompress, String archivingPath)
-
-
-
Method Detail
-
withoutXSDValidation
public static void withoutXSDValidation(Runnable task)
-
toXMLByteArray
public byte[] toXMLByteArray(Y data)
-
toObject
public X toObject(byte[] data)
-
toObject
public X toObject(InputStream inputStream)
-
marsh
public String marsh(Y data) throws JAXBException
- Throws:
JAXBException
-
unmarsh
public X unmarsh(String data) throws JAXBException
- Throws:
JAXBException
-
unmarsh
public X unmarsh(byte[] data) throws IntegrationModuleException
- Throws:
IntegrationModuleException
-
unmarshSystemConfiguration
public X unmarshSystemConfiguration(byte[] data) throws IntegrationModuleException
- Throws:
IntegrationModuleException
-
unmarshProductFilter
public X unmarshProductFilter(byte[] data) throws IntegrationModuleException
- Throws:
IntegrationModuleException
-
unsealWithKey
public byte[] unsealWithKey(byte[] data, Key symmKey)
-
writePrescriptionToFile
public void writePrescriptionToFile(byte[] unsealByteWithSymmKeyDecodeAndDecompress, String archivingPath) throws IOException, IntegrationModuleException
-
-