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

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


  public byte[] serialize(Object object) {
    try {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      Collection<JavaEEObjectStreamHandler> handlers = new ArrayList<>();
      handlers.add(getHandler());
      JavaEEObjectOutputStream oos = new JavaEEObjectOutputStream(baos,
          true, handlers);
      oos.writeObject(object);
      return baos.toByteArray();
    } catch (Exception e) {
      LOG.warn(
          "Caught Exception attempting to serialize. Falling Back\n {} ",
          e);
View Full Code Here

TOP

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

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.