Java XML Data Type Converter deserializeLogic(String logicString)

Here you can find the source of deserializeLogic(String logicString)

Description

deserialize Logic

License

Open Source License

Declaration

public static Object deserializeLogic(String logicString) throws ClassNotFoundException 

Method Source Code


//package com.java2s;
/*//from   w ww .  j a v  a 2  s .  c o m
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2015  
 */

import java.io.ByteArrayInputStream;

import java.io.IOException;
import java.io.ObjectInputStream;

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static Object deserializeLogic(String logicString) throws ClassNotFoundException {
        byte[] data = DatatypeConverter.parseBase64Binary(logicString);

        try {
            ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));
            return ois.readObject();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. decodeJavaOpts(String encodedJavaOpts)
  2. decodeToDoubleArray(String encoded)
  3. decrypt(String encryptedText, String password)
  4. deCrypt(String property)
  5. deserializeFromString(String x)
  6. encodeBasicHeader(final String username, final String password)
  7. encodeDoubleArray(double[] noData)
  8. encodeJavaOpts(String javaOpts)
  9. encrypt(String plainText, String password)