Package com.sun.enterprise.container.common.spi.util

Examples of com.sun.enterprise.container.common.spi.util.JavaEEObjectInputStream.readObject()


      ByteArrayInputStream bais = new ByteArrayInputStream(data);
      Collection<JavaEEObjectStreamHandler> handlers = new ArrayList<>();
      handlers.add(getHandler());
      JavaEEObjectInputStream q = new JavaEEObjectInputStream(bais,
          getClass().getClassLoader(), true, handlers);
      return q.readObject();
    } catch (Exception e) {
      LOG.warn(
          "Caught Exception attempting to deserialize. Falling Back\n {} ",
          e);
      return fallback.deserialize(data);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.