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

Examples of com.sun.enterprise.container.common.spi.util.JavaEEObjectInputStream


  public Object deserialize(byte[] data) {
    try {
      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

Related Classes of com.sun.enterprise.container.common.spi.util.JavaEEObjectInputStream

Copyright © 2018 www.massapicom. 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.