Package ca.eandb.util.io

Examples of ca.eandb.util.io.AlternateClassLoaderObjectInputStream


  public T deserialize(ClassLoader loader) throws ClassNotFoundException {
    try {
      ByteArrayInputStream byteStream = new ByteArrayInputStream(data);
      GZIPInputStream gzipStream = new GZIPInputStream(byteStream);
      try {
        ObjectInputStream objectStream = new AlternateClassLoaderObjectInputStream(
            gzipStream, loader);
        object = (T) objectStream.readObject();
        return object;
      } finally {
        gzipStream.close();
      }
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of ca.eandb.util.io.AlternateClassLoaderObjectInputStream

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.