Package org.teiid.core.util

Examples of org.teiid.core.util.ObjectInputStreamWithClassloader


  private Throwable readFromByteArray(byte[] contents) {
    // only for top level we would have the contents as not null.
    if (contents != null) {
      ByteArrayInputStream bais = new ByteArrayInputStream(contents);
      try {
        ObjectInputStream ois = new ObjectInputStreamWithClassloader(bais, ExceptionHolder.class.getClassLoader());
        return (Throwable)ois.readObject();
      } catch (Exception e) {
        //
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.teiid.core.util.ObjectInputStreamWithClassloader

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.